blob: 8170ee7ebf4ea753344221168373d54216a9f79f (
plain)
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
40
41
42
43
|
version: '3.3'
services:
fluentbit:
image: fluent/fluent-bit:latest
container_name: fluentbit
command: /fluent-bit/bin/fluent-bit -i node_exporter_metrics -p path.procfs=/host/proc -p path.sysfs=/host/sys -o prometheus_exporter -p "add_label=host fluentbit" -f 1
ports:
- 2021:2021
networks:
- exporter-network
volumes:
- /proc:/host/proc
- /sys:/host/sys
grafana:
image: grafana/grafana:latest
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./config/grafana/provisioning:/etc/grafana/provisioning
networks:
- exporter-network
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
prometheus:
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- --config.file=/etc/prometheus/prometheus.yml
networks:
- exporter-network
ports:
- 9090:9090
networks:
exporter-network:
driver: bridge
|