feat: enable prometheus metrics for Traefik

This commit is contained in:
João Pedro Toledo Goncalves 2026-01-27 11:59:29 -03:00
parent 5f9d2acbf0
commit 988b8f18dc
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ services:
- "--log.level=INFO" - "--log.level=INFO"
- "--accesslog=true" - "--accesslog=true"
- "--accesslog.format=json" - "--accesslog.format=json"
- "--metrics.prometheus=true"
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
- "--metrics.prometheus.addEntryPointsLabels=true"
- "--metrics.prometheus.addServicesLabels=true"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
- ./dynamic_conf.yml:/etc/traefik/dynamic_conf.yml:ro - ./dynamic_conf.yml:/etc/traefik/dynamic_conf.yml:ro