Hi,
Currently, I need to monitor a hundred hosts with the ICMP module using
blackbox_exporter with file_sd_configs for every target host.
But the result I've got is almost the host result the '0' / 'down' value
whereas the host is up and running and can be ping to that. Is there any
misconfiguration on my own?
Here is my config example.
*prometheus config prometheus.yml:*
scrape_configs:
- job_name: "rtu_status"
scrape_interval: 10m
metrics_path: /probe
params:
module: [icmp_ipv4]
file_sd_configs:
- files:
- 'ping/*.json'
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: ip_rtu
- target_label: __address__
replacement: localhost:9115
*target config hosts.json:*[
{"targets":["10.23.45.223"],"
labels":
{"rtu_sname":"RTU00-D1-ARK"}}
]
*blackbox config blackbox.yml*modules:
icmp_ipv4:
prober: icmp
# timeout: 1s
icmp:
preferred_ip_protocol: ip4
*blackbox daemon config:*[Unit]
Description=blackbox_exporter
Wants=network-online.target
After=network-online.target
[Service]
User=blackbox
AmbientCapabilities=CAP_NET_RAW
ExecStart=/opt/blackbox-exporter/blackbox_exporter
--config.file=/opt/blackbox-exporter/blackbox.yml
StandardOutput=syslog
StandardError=syslog
LimitNOFILE=8192
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5d87fddc-5d53-49b0-8e8b-fa1beb548984n%40googlegroups.com.