From 6e02886e51ca3c17858f8f46e07d16eadd796c97 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Tue, 23 May 2023 12:22:22 +0200 Subject: [PATCH] fix scrape config --- abra.sh | 2 +- scrape-config.example.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index f17e47b..3ce10c9 100644 --- a/abra.sh +++ b/abra.sh @@ -13,7 +13,7 @@ export ALERTMANAGER_CONFIG_VERSION=v1 # creates a default prometheus scrape config for a given node add_node(){ name=$1 - add_domain "$name" "$name:8082/metrics" + add_domain "$name" "$name:8082" add_domain "$name" "node.monitoring.$name" add_domain "$name" "cadvisor.monitoring.$name" cat "/prometheus/scrape_configs/$name.yml" diff --git a/scrape-config.example.yml b/scrape-config.example.yml index c16134f..d2e7a55 100644 --- a/scrape-config.example.yml +++ b/scrape-config.example.yml @@ -1,4 +1,4 @@ - targets: - - 'example.org:8082/metrics' + - 'example.org:8082' - 'node.monitoring.example.org' - 'cadvisor.monitoring.example.org'