initial commit: geekworm x1208 ups prometheus exporter

This commit is contained in:
2026-04-17 20:30:34 +02:00
commit aae6cee886
11 changed files with 389 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
services:
node-exporter:
image: prom/node-exporter:latest
hostname: node-exporter
restart: unless-stopped
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- /var/lib/node-exporter/textfiles:/textfiles:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
- '--collector.textfile.directory=/textfiles'
- '--web.telemetry-path=/_prom/metrics'
expose:
- 9100
networks:
- monitoring-network
logging:
driver: journald
options:
tag: "container-{{.Name}}"
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
depends_on:
- node-exporter
volumes:
- "./prometheus.yaml:/etc/prometheus/prometheus.yml"
networks:
- monitoring-network
logging:
driver: journald
options:
tag: "container-{{.Name}}"
networks:
monitoring-network: