Skip to content

Scrape_configs: retain cAdvisor metrics for system processes #1443

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bboreham
Copy link
Contributor

Currently, CPU metrics for Kubelet, Containerd, etc. are dropped by a relabel rule since they don't have a container image.

On most systems they run in their own cgroup called system.slice, so we can add another rule which uses that fact to give the image label a value and then they won't be dropped.

Same change was made here a while back: grafana/agent#4048

Currently, CPU metrics for Kubelet, Containerd, etc. are dropped by a
relabel rule since they don't have a container image.

On most systems they run in their own cgroup called `system.slice`, so
we can add another rule which uses that fact to give the `image` label a
value and then they won't be dropped.
@bboreham bboreham force-pushed the system-slice-metrics branch from 8c9653b to aeba5f5 Compare May 21, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant