MindFlavor / prometheus_wireguard_exporter

A Prometheus exporter for WireGuard, written in Rust.
https://mindflavor.github.io/prometheus_wireguard_exporter
MIT License
493 stars 51 forks source link

Implement a wireguard_up key #37

Closed jpds closed 3 years ago

jpds commented 4 years ago

There should be a wireguard_up boolean key that shows if the WireGuard interface being monitored is enabled or not.

MindFlavor commented 4 years ago

AFAIK the wg show dump does not report disabled interfaces. This should reflect in the output with the missing information. I would use the absent Prometheus function to show this graphically.

Let me know is it helps, having the exporter report the absence of data would mean making up the other values, which is something I'd rather not do.