-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
metrics: add cilium_datapath_nat_gc_entries #12832
metrics: add cilium_datapath_nat_gc_entries #12832
Conversation
b1e507c
to
bd04add
Compare
Coverage decreased (-0.009%) to 37.109% when pulling bd04add9130af51329efe46d78bfb6850041b6c7 on ctripcloud:add_nat_metrics_github into 5195789 on cilium:master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
Unfortunately, iterating over all NAT entries just to update metrics counters each time we do GC of CT entries is too expensive operation. We might introduce such iteration in #12686. So, I suggest to wait until the latter has been done.
Thanks @brb , then should I close this PR right now? |
Let's keep it open. I've just changed its state to draft. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ArthurChiao #13912 got merged. Mind rebasing your PR and adding metrics? |
@ArthurChiao Yeah, the metrics part is still needed (I've only added the logging). |
I'll have a look, thanks! @brb |
…onstant Signed-off-by: ArthurChiao <arthurchiao@hotmail.com>
Signed-off-by: ArthurChiao <arthurchiao@hotmail.com>
bd04add
to
b30eed4
Compare
Hi @brb, rebased to master, please have a review, thanks! Note: currently this metric could only be enabled/disabled along with Test output:
|
test-me-please |
This patch adds NAT GC metrics to current metrics list.
As NAT entries areGC'd alongside CT entries and NAT module has no dedicated GC jobs, we
calculate the NAT metrics in CT module's GC job.
Signed-off-by: ArthurChiao arthurchiao@hotmail.com