Always reset counter metrics when automation restart wireguard interface
Hello @MindFlavor , honesty this amazing project
could this exporter save all metrics from the beginning with ignoring how often we restarted wireguard interface? or could be store stats into file or some databases
i used this wireguard framework to manage https://github.com/vx3r/wg-gen-web
everytime do CUD (Create, Update and Delete) automatically restart wireguard interface

i think its could be good if this exporter could save from beginning depends from exporter systemd file status


Hello @rahmadsandy,
please correct me if I misunderstood. You are suggesting to persist the output of wg show all dump to use in case wireguard is restarting?
sorry replying lately, yes correct @MindFlavor
but i have tried after restarting wireguard service wg show all dump also resetting all data
We can cache the last wg show all dump output but I am not sure it would help: the counters will get reset anyway at the next poll. I'll try and think about an alternative. If anyone in the community can chip in, it would be most welcome!
thank you @MindFlavor still waiting your progress 🚀