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: