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

Is there any way to preserve transmitted and received bytes information. So even after server restart i have the information available. #640

Open
nirajkumar999 opened this issue Oct 16, 2024 · 2 comments

Comments

@nirajkumar999
Copy link

Please let me know if someone has any solution :)

@wociscz
Copy link

wociscz commented Oct 16, 2024

Unless you are periodically save the information you need there isn't any way. Wireguard doesn't have some kind of "state" file - restart will reset the counters.
edit:
https://github.com/kbknapp/wireguard_exporter for example -> pull the metrics out of the wireguard to the prometheus. Do the magic/traffic counting there.

@nirajkumar999
Copy link
Author

thank you for providing the link.

I have gone through ur link...but its really going above my head on how to use this. I am completely new. If u could help me wih some demo video you have or any youtube link i can follow.

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

2 participants