From 91ffdc732cacfff3b08c19ec2af43490068d4b4b Mon Sep 17 00:00:00 2001 From: mricher Date: Mon, 14 Dec 2020 00:19:01 +0100 Subject: [PATCH 1/2] Add traefik v1 prometheus metrics configuration --- app/config/configuration/traefik/traefik.toml | 9 +++++++++ 1 file changed, 9 insertions(+) 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 From 94ee5d3e5cb6cd22678f006d5afb0cc47dfbfa63 Mon Sep 17 00:00:00 2001 From: mricher Date: Mon, 14 Dec 2020 17:07:44 +0100 Subject: [PATCH 2/2] Remove traefik v2 options and fix endpoint to admin --- app/config/configuration/traefik/traefik.toml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/config/configuration/traefik/traefik.toml b/app/config/configuration/traefik/traefik.toml index d38e2ca..4a48fde 100644 --- a/app/config/configuration/traefik/traefik.toml +++ b/app/config/configuration/traefik/traefik.toml @@ -47,8 +47,4 @@ entrypoint = "admin" [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 + entryPoint = "admin"