-
-
Notifications
You must be signed in to change notification settings - Fork 322
/
docker-compose.monitor.yml
39 lines (35 loc) · 1.32 KB
/
docker-compose.monitor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3.5'
services:
# Prometheus Exporters ------------------------------
elasticsearch-exporter:
image: justwatch/elasticsearch_exporter:1.1.0
restart: always
command: ["--es.uri", "https://${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}@${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}",
"--es.ssl-skip-verify",
"--es.all",
"--es.snapshots",
"--es.indices"]
ports:
- "9114:9114"
logstash-exporter:
image: alxrem/prometheus-logstash-exporter
restart: always
ports:
- "9304:9304"
command: ["-logstash.host", "${LOGSTASH_HOST}"]
# Cluster Logs Shipper ------------------------------
filebeat-cluster-logs:
image: docker.elastic.co/beats/filebeat:${ELK_VERSION}
restart: always
# -e flag to log to stderr and disable syslog/file output
command: -e --strict.perms=false
user: root
environment:
ELASTIC_USERNAME: ${ELASTIC_USERNAME}
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
KIBANA_HOST_PORT: ${KIBANA_HOST}:${KIBANA_PORT}
ELASTICSEARCH_HOST_PORT: https://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}
volumes:
- ./filebeat/filebeat.monitoring.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro