From 51728061350354ed838946c33b1c35decea62575 Mon Sep 17 00:00:00 2001 From: Danny Groenewegen Date: Fri, 20 Mar 2026 20:17:07 +0100 Subject: [PATCH] Update scape-config example to use HTTPS for Traefik metrics --- abra.sh | 2 +- release/next | 2 ++ scrape-config.example.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index bf3a0dc..2651477 100644 --- a/abra.sh +++ b/abra.sh @@ -16,7 +16,7 @@ export GRAFANA_ALERTS_NODE_VERSION=v1c # creates a default prometheus scrape config for a given node add_node(){ name=$1 - add_domain "$name" "$name:8082" + add_domain "$name" "metrics.traefik.$name" add_domain "$name" "node.monitoring.$name" add_domain "$name" "cadvisor.monitoring.$name" cat "/prometheus/scrape_configs/$name.yml" diff --git a/release/next b/release/next index 4c2b922..c05215f 100644 --- a/release/next +++ b/release/next @@ -5,3 +5,5 @@ COMPOSE_FILE="$COMPOSE_FILE:compose.grafana-oidc.yml" 2. SMTP was moved into a seperate compose file. If you have smtp configured you need to add the following line to you .env file: COMPOSE_FILE="$COMPOSE_FILE:compose.grafana-smtp.yml" + +3. The scape-config.example.yml file and add_node() command were updated to use a secure endpoint for the traefik metrics instead http. This requires an updated Traefik recipe that publishes the metrics on https. \ No newline at end of file diff --git a/scrape-config.example.yml b/scrape-config.example.yml index d2e7a55..20dda9f 100644 --- a/scrape-config.example.yml +++ b/scrape-config.example.yml @@ -1,4 +1,4 @@ - targets: - - 'example.org:8082' + - 'metrics.traefik.example.org' - 'node.monitoring.example.org' - 'cadvisor.monitoring.example.org' -- 2.49.0