add container_elk notes
This commit is contained in:
62
active/container_elk/metricbeat.yaml
Normal file
62
active/container_elk/metricbeat.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
metricbeat.config.modules:
|
||||
path: ${path.config}/modules.d/*.yml
|
||||
reload.enabled: false
|
||||
|
||||
|
||||
metricbeat.modules:
|
||||
- module: elasticsearch
|
||||
xpack.enabled: true
|
||||
period: 10s
|
||||
hosts: ${ELASTIC_HOSTS}
|
||||
ssl.certificate_authorities: "certs/ca/ca.crt"
|
||||
ssl.certificate: "certs/es01/es01.crt"
|
||||
ssl.key: "certs/es01/es01.key"
|
||||
username: ${ELASTIC_USER}
|
||||
password: ${ELASTIC_PASSWORD}
|
||||
ssl.enabled: true
|
||||
|
||||
|
||||
- module: logstash
|
||||
xpack.enabled: true
|
||||
period: 10s
|
||||
hosts: ${LOGSTASH_HOSTS}
|
||||
|
||||
|
||||
- module: kibana
|
||||
metricsets:
|
||||
- stats
|
||||
period: 10s
|
||||
hosts: ${KIBANA_HOSTS}
|
||||
username: ${ELASTIC_USER}
|
||||
password: ${ELASTIC_PASSWORD}
|
||||
xpack.enabled: true
|
||||
|
||||
|
||||
- module: docker
|
||||
metricsets:
|
||||
- "container"
|
||||
- "cpu"
|
||||
- "diskio"
|
||||
- "healthcheck"
|
||||
- "info"
|
||||
#- "image"
|
||||
- "memory"
|
||||
- "network"
|
||||
hosts: ["unix:///var/run/docker.sock"]
|
||||
period: 10s
|
||||
enabled: true
|
||||
|
||||
|
||||
processors:
|
||||
- add_host_metadata: ~
|
||||
- add_docker_metadata: ~
|
||||
|
||||
|
||||
output.elasticsearch:
|
||||
hosts: ${ELASTIC_HOSTS}
|
||||
username: ${ELASTIC_USER}
|
||||
password: ${ELASTIC_PASSWORD}
|
||||
ssl:
|
||||
certificate: "certs/es01/es01.crt"
|
||||
certificate_authorities: "certs/ca/ca.crt"
|
||||
key: "certs/es01/es01.key"
|
||||
Reference in New Issue
Block a user