I'm trying to ping a list of targets using blackbox_exporter with prometheus but I seem to only be able to probe blackbox_exporters and not the actual targets I want to check.
I can't find any documentation in blackbox on where to list the targets should be listed so I made the odd assumption that it uses the targets provided in the prometheus config but from what I understand that just makes prometheus believe that there are many blackboxes to probe.
This is my blackbox_exporter config
modules:
icmp:
prober: icmp
timeout: 5s
icmp:
preferred_ip_protocol: ip4
However when I visit the web GUI for blackbox the config contains a bunch of parameters which I didn't specify.
modules:
icmp:
prober: icmp
timeout: 5s
http:
ip_protocol_fallback: true
tcp:
ip_protocol_fallback: true
icmp:
preferred_ip_protocol: ip4
ip_protocol_fallback: true
dns:
ip_protocol_fallback: true
And this is my prometheus config
global:
scrape_interval: 15s
evaluation_interval: 15s
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [icmp]
static_configs:
- targets:
- icmp-target1 # supposed to be a switch, router, pc or anything that responds to ping
- icmp-target2
Expected result: Somewhere along the journey I expected my targets to be pinged by blackbox and prometheus collecting the result.
Actual result: Prometheus sends a probe request through HTTP for every target listed in its target list.