From f01e35c531b0a56248e5f230b95c28fddcab263b Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Wed, 13 Jul 2022 01:33:47 +0200 Subject: [PATCH] monitoring: fix prometheus instance generation from inventory no idea why it broke --- templates/prometheus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/prometheus.yml b/templates/prometheus.yml index 666ad74..0af79cc 100644 --- a/templates/prometheus.yml +++ b/templates/prometheus.yml @@ -18,7 +18,7 @@ scrape_configs: static_configs: - targets: ['localhost:9090'] -{% for group in groups.keys() | reject('all') | reject('ungrouped') %} +{% for group in groups.keys() | difference(['all', 'ungrouped']) %} - job_name: {{ group }} static_configs: {% for host in groups[group] %}