Add ICMP checks
This commit is contained in:
parent
ddc91059b5
commit
051b5b0e19
2 changed files with 21 additions and 0 deletions
|
@ -17,3 +17,6 @@ modules:
|
|||
- header: Location
|
||||
regexp: ^https
|
||||
preferred_ip_protocol: ip4 # Docker network is v4 only
|
||||
|
||||
icmp:
|
||||
prober: icmp
|
||||
|
|
|
@ -69,6 +69,24 @@ scrape_configs:
|
|||
- target_label: __address__
|
||||
replacement: blackbox-external:9115
|
||||
|
||||
- job_name: blackbox_icmp
|
||||
scrape_interval: 10m
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [icmp]
|
||||
static_configs:
|
||||
- targets:
|
||||
- "{{ pve_hosts.pve.ip }}"
|
||||
- "{{ pve_hosts.homeassistant.ip }}"
|
||||
- 9.9.9.9
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: blackbox:9115
|
||||
|
||||
- job_name: blackbox_https_redir
|
||||
scrape_interval: 10m
|
||||
metrics_path: /probe
|
||||
|
|
Loading…
Reference in a new issue