May 2019
Intermediate to advanced
442 pages
11h 36m
English
The scrape job configuration for blackbox probes is unusual, in the sense that both the prober module and the list of targets, whether static or discovered, need to be relayed to the exporter as HTTP GET parameters to the /probe endpoint. To make this work, a bit of relabel_configs magic is required, as seen in Chapter 5, Running a Prometheus Server.
Using the following Prometheus configuration snippet as an example, we're setting up an ICMP probe against the Prometheus instance, while blackbox_exporter is running on target01:
- job_name: 'blackbox-icmp' metrics_path: /probe params: module: [icmp] static_configs: - targets: - prometheus.prom.inet relabel_configs: - source_labels: [__address__] target_label: __param_target
Read now
Unlock full access