Skip to content
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

Test "Remove relevant metrics series on pod deletion" #23900

Closed
wants to merge 1 commit into from

Conversation

pchaigno
Copy link
Member

Just meant to try and run the Travis CI job for #23385.

Using pod source/destinationContext may result in big metrics
cardinality. Additionally this one component is exposing metrics for all
pods running on the same k8s node. Over time with each created and
removed pod number of metric data series will grow which will eventually
result in slower and bigger responses on metrics endpoint and may even
lead to OOM problems in cilium-agent itself or prometheus metrics
collector.

This change removes data series bound do certain pods when they are
deleted. This is safe, because after pod deletion its metric value will
never change.

There is a 1 minute delay introduced between pod deletion and metric
data series removal, so scrapers will have time to collect last value of
given metric.

Fixes: cilium#23162
Signed-off-by: Marek Chodor <mchodor@google.com>
@pchaigno pchaigno added the release-note/misc This PR makes changes that have no direct user impact. label Feb 21, 2023
@pchaigno pchaigno closed this Feb 22, 2023
@pchaigno pchaigno deleted the test-23385 branch February 22, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants