udpate condition

This commit is contained in:
Ludovic Cartier 2021-11-02 15:55:14 +01:00
parent 2214426937
commit 6db294166c

View File

@ -160,11 +160,11 @@ scrape_configs:
{% endif %} {% endif %}
// //
{% if prometheus_blackbox_exporter_targets is defined %} {% if prometheus_blackbox_exporter is defined %}
# blacbox # # blacbox #
{% for target in prometheus_blackbox_exporter_http.values() %} {% for target in prometheus_blackbox_exporter_http.values() %}
## http check ## ## http check ##
- job_name: blackbox - url {{ target.name }} - job_name: blackbox - url {{ target }}
scrape_interval: 30s scrape_interval: 30s
scrape_timeout: 10s scrape_timeout: 10s
metrics_path: {{ target.metrics_path }} metrics_path: {{ target.metrics_path }}
@ -183,7 +183,7 @@ scrape_configs:
{% endfor %} {% endfor %}
{% for target in prometheus_blackbox_exporter_ping.values() %} {% for target in prometheus_blackbox_exporter_ping.values() %}
## ping ## ## ping ##
- job_name: blackbox - ping {{ target.name }} - job_name: blackbox - ping {{ target }}
scrape_interval: 30s scrape_interval: 30s
scrape_timeout: 10s scrape_timeout: 10s
params: params: