From 91ffdc732cacfff3b08c19ec2af43490068d4b4b Mon Sep 17 00:00:00 2001 From: mricher Date: Mon, 14 Dec 2020 00:19:01 +0100 Subject: Add traefik v1 prometheus metrics configuration --- app/config/configuration/traefik/traefik.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app') 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 -- cgit v1.2.3