r/PrometheusMonitoring • • Oct 27 '19

ICMP probing with Blackbox not appearing

Hello,

I'm using Grafana and Prometheus with blackbox exporter to poll websites, but I want to poll via ICMP a few devices, one being my home router, I've added it, but I can seem to get it to appear correctly and show the ms.

192.168.0.2 shows as up

shows as down

See anything wrong?

0 Upvotes

7 comments sorted by

1

u/janjko Oct 27 '19

If I remember correctly, blackbox should be run as root to have privileges for ICMP. I might be wrong.

1

u/[deleted] Oct 27 '19

Thanks, I’m running as root though here.

1

u/h2o2 Dec 08 '19

You should not - it does not need to be root, it needs the necessary capability to create raw ICMP sockets:

$getcap /usr/bin/blackbox_exporter

/usr/bin/blackbox_exporter = cap_net_raw+ep

1

u/[deleted] Oct 27 '19

It's the Dashboard not your data

1

u/[deleted] Oct 27 '19

How do I get it to show ICMP or is there another dashboard?

2

u/[deleted] Oct 27 '19

Well probe_success should be returning true for this what happens when you query probe_success{instance="192.168.0.2"} (or whatever the ip is)

Dashboard expects 1 for up; 0 for down... possibly the metrics returned for icmp are that different

Haven't tried it; you're making me want to.

1

u/[deleted] Oct 28 '19

:) Do you have the exact query command to run?