Skip to content

Enable full labels for container cpu usage#4

Draft
AvihuHenya wants to merge 1 commit into
mainfrom
cursor/enable-full-labels-for-container-cpu-usage-955f
Draft

Enable full labels for container cpu usage#4
AvihuHenya wants to merge 1 commit into
mainfrom
cursor/enable-full-labels-for-container-cpu-usage-955f

Conversation

@AvihuHenya

Copy link
Copy Markdown

Refactor Prometheus ServiceMonitor relabeling rules and enhance RBAC for complete container_cpu_usage_seconds_total labels.

The previous Prometheus ServiceMonitor configuration for kubelet metrics used complex and outdated metricRelabelings to extract pod, namespace, and container labels. In modern Kubernetes/EKS, cAdvisor directly exposes these labels, making the old rules unnecessary and often causing labels to be dropped. This PR simplifies the relabeling to correctly capture these labels and adds filters to exclude incomplete metrics (e.g., pause containers or empty labels). RBAC permissions are also enhanced to ensure full access to required metric endpoints.


Open in Cursor Open in Web

@cursor

cursor Bot commented Aug 17, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

2 participants