OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: drivera on June 29, 2021, 04:01:52 PM

Title: Prometheus Metrics for DPinger stats
Post by: drivera on June 29, 2021, 04:01:52 PM
Hi!

I'm on the verge of deploying a monitoring station using Prometheus and Grafana for my home network - just to keep track of overall health and metrics that I'm interested in seeing. As an aside to that, I'm looking to keep track of my internet circuits' (two of them) health, as measured by dpinger: RTT, RTTD, loss %, etc.

However, looking at the Prometheus Exporter, these statistics aren't being tracked. Can these metrics be tracked in any meaningful way for reporting via the Prometheus Exporter? Can y'all think of any hints about what the best way to go about that might be?

Thanks!
Title: Re: Prometheus Metrics for DPinger stats
Post by: drivera on June 29, 2021, 04:04:52 PM
I take that back - those metrics are indeed tracked for health reporting, but now I'd have to mine them for the Prometheus exporter ... at least I now know where to look!

As you were :D
Title: Re: Prometheus Metrics for DPinger stats
Post by: franco on June 29, 2021, 04:06:49 PM
Basically this: https://github.com/opnsense/core/blob/656c5ada7eb43f52774bd6c256f414f329732eff/src/etc/inc/rrd.inc#L534


Cheers,
Franco