Add traefik v1 prometheus metrics configuration

This commit is contained in:
mricher 2020-12-14 00:19:01 +01:00
parent 3ff113ceab
commit 91ffdc732c
Signed by untrusted user who does not match committer: maximilien
GPG Key ID: CA73C61E72CB3E61
1 changed files with 9 additions and 0 deletions

View File

@ -43,3 +43,12 @@ entrypoint = "admin"
prefix = "traefik"
domain = "web.deuxfleurs.fr"
exposedByDefault = false
[metrics]
[metrics.prometheus]
# -- below is for traefik 1.7 see https://doc.traefik.io/traefik/v1.7/configuration/metrics/
entryPoint = "metrics" # default to "/traefik"
buckets = [0.1,0.3,1.2,5.0] # default buckets
# -- options below seem to ONLY be for traefik v2
# addServicesLabels = true
# addEntryPointsLabels = true