Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upExclude namespaces from service discovery #5190
Comments
This comment has been minimized.
This comment has been minimized.
|
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Feb 7, 2019
This comment has been minimized.
This comment has been minimized.
|
I asked first on the slack channel - you can see my message here. I assumed the mailing list is similar to the mailing list. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
omerlh commentedFeb 7, 2019
Proposal
Use case. Why is this important?
I want to apply
sample_limitto protect Prometheus from a service that exposes too many metrics. The challenge is applying the limit only on applicative namespaces - I want to excludekube-systemfrom the limit or apply a different limit to this namespace. To achieve that, I would like to define 2 service discovery jobs:__meta_kubernetes_namespaceto scrape onlykube-system.kube-system.I can achieve that by using
__meta_kubernetes_namespaceto specify all the namespaces that exist today. This solution will work, but is cumbersome and require changes each time a namespace is added. I would like to have a more dynamic solution.