add blackbox-exporter, loki/promtail configs; fix prometheus: host network for WG access

This commit is contained in:
kpa39l
2026-08-30 17:53:49 +00:00
parent 7a41e7f32c
commit e139988095
5 changed files with 95 additions and 11 deletions
+10 -4
View File
@@ -14,10 +14,7 @@ services:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention.time=30d'
- '--storage.tsdb.path=/prometheus'
ports:
- "9090:9090"
networks:
- monitoring
network_mode: host
grafana:
image: grafana/grafana:11.1.0
@@ -65,6 +62,15 @@ services:
networks:
- monitoring
blackbox-exporter:
image: prom/blackbox-exporter:v0.25.0
container_name: blackbox-exporter
restart: unless-stopped
command: --config.file=/etc/blackbox/blackbox.yml
volumes:
- ./blackbox.yml:/etc/blackbox/blackbox.yml:ro
network_mode: host
networks:
monitoring:
driver: bridge