feat(infra): auto-discovery Prometheus + Traefik metrics

- Prometheus: add docker_sd_configs for auto-discovery via labels
- Prometheus: mount Docker socket for Docker SD
- Traefik: enable --metrics.prometheus with entrypoint/service labels
- Traefik: add prometheus.io/scrape=true label
- Observability: mount Docker socket for Prometheus container
- Bump hub submodule (Traefik metrics queries + sparkline charts)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
asepharyana
2026-07-23 07:45:59 +07:00
co-authored by Claude Opus 4.8
parent 688ac095f6
commit 40e1a80f9f
4 changed files with 34 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ services:
volumes:
- ../../infra/otel/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- /prometheus
- /var/run/docker.sock:/var/run/docker.sock:ro
# ── Node Exporter (Host Metrics: CPU, RAM, Disk) ──
node-exporter: