2021-11-29 05:35:32 +02:00
|
|
|
version: "3.8"
|
2021-11-29 09:23:49 +02:00
|
|
|
|
2020-01-15 12:42:15 +02:00
|
|
|
services:
|
2021-11-29 09:23:49 +02:00
|
|
|
|
2020-01-15 12:42:15 +02:00
|
|
|
prometheus:
|
2021-11-29 05:35:32 +02:00
|
|
|
image: prom/prometheus:v2.31.1
|
|
|
|
command:
|
2021-11-29 09:23:49 +02:00
|
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
|
|
- "--storage.tsdb.path=/var/lib/prometheus"
|
|
|
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
|
|
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
|
|
|
- "--web.external-url=http://127.0.0.1:9090"
|
|
|
|
- "--storage.tsdb.retention.time=1y"
|
2020-01-15 12:42:15 +02:00
|
|
|
ports:
|
|
|
|
- "9090:9090"
|
|
|
|
volumes:
|
2021-11-29 05:35:32 +02:00
|
|
|
- ./data/etc:/etc/prometheus
|
|
|
|
- ./data/var:/var/lib/prometheus
|
2020-01-15 12:42:15 +02:00
|
|
|
restart: unless-stopped
|
2021-11-29 09:23:49 +02:00
|
|
|
|
|
|
|
graphite:
|
|
|
|
image: prom/graphite-exporter
|
|
|
|
command:
|
|
|
|
- "--graphite.mapping-config=/etc/prometheus/graphite-mapping.yaml"
|
|
|
|
- "--graphite.mapping-strict-match"
|
|
|
|
ports:
|
|
|
|
- "9108:9108"
|
|
|
|
- "9109:9109"
|
|
|
|
- "9109:9109/udp"
|
|
|
|
volumes:
|
|
|
|
- ./data/etc:/etc/prometheus
|
|
|
|
restart: unless-stopped
|