-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support Named Counters #20
Comments
/cc @aroradaman |
I don't think these counters will be persisted, these will reset to 0 at every sync. Or we will have to parse the current value and use that when rewriting the rules. That is why we used nfacct for the iptables metrics, may be we can integrate nfacct counters for this. |
that is not how I read it from the documentation, why they will be resetted? |
We flush the rules and write them again every sync, so in our use case, they will reset to 0 at every sync. |
I do think the counters do not reset , they are presented as the alternative to nfacct https://wiki.nftables.org/wiki-nftables/index.php/Supported_features_compared_to_xtables#nfacct |
I tried implementing this, and counters are persisted indeed.
This thought stemmed from iptables-coutners which were being reset at every sync. |
If you have "anonymous" counters in your rules ( |
This will be very useful to implement metrics in kube-proxy
https://wiki.nftables.org/wiki-nftables/index.php/Counters
The text was updated successfully, but these errors were encountered: