Add ICMP checks

This commit is contained in:
Jake Howard 2023-01-31 14:29:27 +00:00
parent ddc91059b5
commit 051b5b0e19
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 21 additions and 0 deletions

View file

@ -17,3 +17,6 @@ modules:
- header: Location
regexp: ^https
preferred_ip_protocol: ip4 # Docker network is v4 only
icmp:
prober: icmp

View file

@ -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