Add custom scrape configs to some hosts

This commit is contained in:
Tobias Manske 2024-01-10 02:19:53 +01:00
parent 5c07e751d0
commit c142aed490
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -21,6 +21,9 @@ scrape_configs:
file_sd_configs: file_sd_configs:
- files: - files:
- /label_discovery/docker-targets.json - /label_discovery/docker-targets.json
{% if metrics.additional_scrape_rules is defined %}
{{ metrics.additional_scrape_rules | to_nice_yaml}}
{% endif %}
remote_write: remote_write:
- url: https://{{ common.mimir.host | mandatory }}/api/v1/push - url: https://{{ common.mimir.host | mandatory }}/api/v1/push
headers: headers: