prometheus_wireguard_exporter icon indicating copy to clipboard operation
prometheus_wireguard_exporter copied to clipboard

wireguard_latest_handshake_seconds metric confusing

Open pavlozt opened this issue 10 months ago • 0 comments

wireguard_latest_handshake_seconds metric confusing The metric does not match the description. This is even reflected in the readme:

wireguard_latest_handshake_seconds{interface="wg0",public_key="2S7mA0vEMethCNQrJpJKE81/JmhgtB+tHHLYQhgM6kk=",allowed_ips="10.70.0.2/32,10.70.0.66/32",friendly_name="OnePlus 6T"} 1562834127
1562834127

This value 1562834127 is very similar to time "Thu Jul 11 2019 08:35:27 GMT+0000"

If this is seconds, then it will export with the prefix _timestamp_seconds according to naming guide https://prometheus.io/docs/practices/naming/

But most likely we need to calculate this metric differently.

pavlozt avatar Apr 07 '24 09:04 pavlozt