feat: enable prometheus metrics for Traefik
This commit is contained in:
parent
5f9d2acbf0
commit
988b8f18dc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue