From 4fec7ab566d9ac3bfb3fbd126cb3e3abbe384e69 Mon Sep 17 00:00:00 2001 From: nd Date: Sat, 23 May 2020 14:42:47 +0200 Subject: [PATCH] fix self scrape if for changed listen addresses --- templates/scrape_self.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/scrape_self.conf.j2 b/templates/scrape_self.conf.j2 index a1194ec..5542ee0 100644 --- a/templates/scrape_self.conf.j2 +++ b/templates/scrape_self.conf.j2 @@ -1,6 +1,6 @@ - job_name: 'prometheus' static_configs: - - targets: ['localhost:9090'] + - targets: ['{{ prometheus.args["web.listen-address"] }}'] relabel_configs: - replacement: '{{ inventory_hostname }}' target_label: instance