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

change all metrics.alloy to drop init container in separate step #40

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

adamhackl
Copy link
Contributor

I have had issues where a container is inadvertently dropped because it does not have the label __meta_kubernetes_pod_container_init at all. The keep step is looking for the label to be present and set to false. Instead, I moved this check out to its own rule to drop if the label is set to true. This clears up the false drops, but still keeps the intention of the original step to not scrape init pods.

I originally had this issue with the kube_dns relabel in kubernetes/core/metrics.alloy and was able to resolve and test this fix. I went through and updated any metrics.alloy that had this pattern with the assumption that it should also be fixed in those as well.

@petewall petewall merged commit 14d9410 into grafana:main Nov 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants