diff options
author | mricher <maximilien.richer@gmail.com> | 2020-12-14 00:19:01 +0100 |
---|---|---|
committer | mricher <maximilien.richer@gmail.com> | 2020-12-14 00:19:01 +0100 |
commit | 91ffdc732cacfff3b08c19ec2af43490068d4b4b (patch) | |
tree | 7fe89c0d9a757c96c1d2a2990adb69e89b995181 | |
parent | 3ff113ceab18d3cd63dd7ad6bb1b9ba8874a18e1 (diff) | |
download | infrastructure-91ffdc732cacfff3b08c19ec2af43490068d4b4b.tar.gz infrastructure-91ffdc732cacfff3b08c19ec2af43490068d4b4b.zip |
Add traefik v1 prometheus metrics configuration
-rw-r--r-- | app/config/configuration/traefik/traefik.toml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/config/configuration/traefik/traefik.toml b/app/config/configuration/traefik/traefik.toml index 03fca8a..d38e2ca 100644 --- a/app/config/configuration/traefik/traefik.toml +++ b/app/config/configuration/traefik/traefik.toml @@ -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 |