From cacb70972e515f010f6aa66c9a54ce21d6f0348c 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: