Is there any way to preserve transmitted and received bytes information. So even after server restart i have the information available.
Opened this issue · 2 comments
rautniraj commented
Please let me know if someone has any solution :)
wociscz commented
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.
rautniraj commented
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.