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

Restrict Prometheus scraping to the namespace where Kepler is deployed #59

Open
imad-elbouhati opened this issue Mar 29, 2024 · 1 comment

Comments

@imad-elbouhati
Copy link

For the moment Kepler scrapes metrics from all namespaces by default. However, I want it to only scrape metrics from a specific namespace where Kepler is deployed.

I did convert the DaemonSet to a Deployment but it doesn't seem to work.

Any assistance provided, even basic explanations or references to relevant documentation, would be immensely helpful for me as a beginner in this area. Thank you for your patience and support!

@yellowhat
Copy link
Contributor

I am not sure if there is a way to collect only a specific namespace, anyway kepler needs privilege permissions.

But you can filter the metrics for a namespace:

kepler_container_package_joules_total{container_namespace="bla"}

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

2 participants