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

namespace level filter #3596

Open
qmyaryar opened this issue Sep 23, 2024 · 0 comments
Open

namespace level filter #3596

qmyaryar opened this issue Sep 23, 2024 · 0 comments

Comments

@qmyaryar
Copy link

I've been working with cAdvisor within our Kubernetes setup to monitor metrics at a namespace-specific level.
My objective is to isolate metrics exclusively generated by cAdvisor ONLY for a chosen namespace.

Despite setting up filters with the intention of narrowing down the metrics to my namespace of interest, I am faced with a challenge. The data returned have metrics from all namespaces, not just the one I'm focusing on.

this is the filter that I used:

relabel_configs:
  - action: keep
    source_labels: [__meta_kubernetes_namespace]
    regex: "i-only-want-this-namespace"

thanks.

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

No branches or pull requests

1 participant