Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireguard_latest_handshake_seconds metric confusing #124

Open
pavlozt opened this issue Apr 7, 2024 · 0 comments
Open

wireguard_latest_handshake_seconds metric confusing #124

pavlozt opened this issue Apr 7, 2024 · 0 comments

Comments

@pavlozt
Copy link

pavlozt commented Apr 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant