udpate condition
This commit is contained in:
parent
2214426937
commit
6db294166c
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user