From c142aed4904d0c8b282742e54182fd5bd25bd961 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Wed, 10 Jan 2024 02:19:53 +0100 Subject: [PATCH] Add custom scrape configs to some hosts --- ansible/plays/services/metric-export/prometheus.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/plays/services/metric-export/prometheus.yml b/ansible/plays/services/metric-export/prometheus.yml index 66bbe30..6c0483e 100644 --- a/ansible/plays/services/metric-export/prometheus.yml +++ b/ansible/plays/services/metric-export/prometheus.yml @@ -21,6 +21,9 @@ scrape_configs: file_sd_configs: - files: - /label_discovery/docker-targets.json +{% if metrics.additional_scrape_rules is defined %} +{{ metrics.additional_scrape_rules | to_nice_yaml}} +{% endif %} remote_write: - url: https://{{ common.mimir.host | mandatory }}/api/v1/push headers: