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

Ignore kubernetes services #1364

Closed
vic3lord opened this Issue Feb 2, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@vic3lord
Copy link
Contributor

vic3lord commented Feb 2, 2016

Hello team,

There are lots of services on kubernetes cluster that don't support prometheus metrics,
Is there any option to make a list of services I don't need prometheus to query?

Thanks for this awesome project.

@jimmidyson

This comment has been minimized.

Copy link
Member

jimmidyson commented Feb 2, 2016

You can do this via relabelling. See https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml#L53-L56 for an example. What this is doing is only keeping Kubernetes services that are annotated with prometheus.io/scrape=true. I find it works best to whitelist services in this way.

@vic3lord

This comment has been minimized.

Copy link
Contributor Author

vic3lord commented Feb 2, 2016

Thanks, it sure seems to solve my problem...

@vic3lord vic3lord closed this Feb 2, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.