Add GitHub Actions workflow for building and pushing Docker container
This commit is contained in:
commit
b6c250540a
3 changed files with 112 additions and 0 deletions
61
metricbeat.yml
Normal file
61
metricbeat.yml
Normal file
|
@ -0,0 +1,61 @@
|
|||
metricbeat.autodiscover:
|
||||
providers:
|
||||
- type: docker
|
||||
hints.enabled: true
|
||||
|
||||
metricbeat.modules:
|
||||
- module: docker
|
||||
metricsets:
|
||||
- container
|
||||
- cpu
|
||||
- diskio
|
||||
- healthcheck
|
||||
- info
|
||||
- image
|
||||
- memory
|
||||
- network
|
||||
hosts: ["unix:///var/run/docker.sock"]
|
||||
period: 30s
|
||||
enabled: True
|
||||
- module: system
|
||||
metricsets:
|
||||
- cpu # CPU usage
|
||||
- load # CPU load averages
|
||||
- memory # Memory usage
|
||||
- network # Network IO
|
||||
- process # Per process metrics
|
||||
- process_summary # Process summary
|
||||
- uptime # System Uptime
|
||||
- socket_summary # Socket summary
|
||||
- core # Per CPU core usage
|
||||
- diskio # Disk IO
|
||||
- filesystem # File system usage for each mountpoint
|
||||
- fsstat # File system summary metrics
|
||||
enabled: true
|
||||
period: 30s
|
||||
processes: ['.*']
|
||||
cpu.metrics: ["percentages"]
|
||||
core.metrics: ["percentages"]
|
||||
|
||||
processors:
|
||||
- add_cloud_metadata: ~
|
||||
- add_docker_metadata: ~
|
||||
- add_id: ~
|
||||
|
||||
output.elasticsearch:
|
||||
hosts: '${ES_HOSTS}'
|
||||
username: '${ES_USERNAME}'
|
||||
password: '${ES_PASSWORD}'
|
||||
ssl.verification_mode: "none"
|
||||
index: '${ES_INDEX}'
|
||||
|
||||
setup.template.name: '${ES_TEMPLATE_NAME}'
|
||||
setup.template.pattern: '${ES_TEMPLATE_PATTERN}'
|
||||
setup.template.settings:
|
||||
index.number_of_shards: 1
|
||||
index.number_of_replicas: 1
|
||||
setup.template.overwrite: false
|
||||
|
||||
setup.ilm.enabled: false
|
||||
setup.ilm.check_exists: false
|
||||
setup.dashboards.enabled: false
|
Loading…
Add table
Add a link
Reference in a new issue