Files
traefik/compose.metrics.yml
dannygroenewegen f946692234 feat: Add labels for label-based metric scraping
Add prometheus.io labels to compose.metrics.yml so monitoring-ng can
auto-discover and scrape Traefik's metrics on the internal network when
enabled.
2026-08-10 21:30:24 +02:00

12 lines
285 B
YAML

version: "3.8"
services:
app:
environment:
- METRICS_ENABLED
deploy:
labels:
# lets monitoring-ng's Alloy auto-discover and scrape metrics-internal
# via the proxy network.
- "prometheus.io/scrape=true"
- "prometheus.io/port=8082"