Open pokab opened 1 year ago
Hey @pokab, yeah, it looked like a simple idea to get a traffic usage across sessions at that time but it was definitely not a great idea. On the one hand, it will be nice to sort it out in v2 while keeping an ability to monitor a traffic but on the other hand, I've completely switched to WireGuard and thinking on archiving this because I have too many other things to focus on (and hopefully - to share). At least I hope this repository should be useful to others with a working codebase with unit and integration tests...
I've got a working solution pushed in my repository, but not yet in the master branch. Will clean it up later. No problem if you don't want a pull request or maintain this application.
If I understand it correctly, UIDs in libreswan are generated dynamically and are always changing.
If this is true, including UIDs in metrics, like this:
is a bad practice since it will cause an unbounded number of unique prometheus time series, as described in https://prometheus.io/docs/practices/naming/ :
Because of this, there should be no label where the value of the label does not come from the configuration file, or is not a fixed value.
So the labels I don't really understand are: