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

Not able to get kube_pod_container_limits_cpu_cores metric #67

Closed
stvnwrgs opened this issue Jan 9, 2017 · 7 comments
Closed

Not able to get kube_pod_container_limits_cpu_cores metric #67

stvnwrgs opened this issue Jan 9, 2017 · 7 comments

Comments

@stvnwrgs
Copy link

stvnwrgs commented Jan 9, 2017

I'm not able to see the kube_pod_container_limits_cpu_cores metric in prometheus. But i can see other metrics like: kube_pod_container_requested_cpu_cores

Setup:
GKE with k8s 1.5.1

Maybe related? #64

@brancz
Copy link
Member

brancz commented Jan 10, 2017

The kube_pod_container_limits_cpu_cores metric is only set if the pod actually has a CPU limit set. Can you make sure that this is the case for the object you are expecting it for?

@stvnwrgs
Copy link
Author

Yes, I'm sure that I have multiple containers inside my pod with a CPU limit.

@decker502
Copy link

I get the same issue.

@brancz
Copy link
Member

brancz commented Jan 16, 2017

I currently don't have much bandwidth to look into this, if someone can investigate this and/or open a PR I'm happy to review it or fix it once we have found the source of the problem.

@stvnwrgs
Copy link
Author

@decker502, @brancz I found the problem. The documentation is newer than the latest release.
Limits are not exported in 0.3.0.

@brancz do you have an idea about the next release date? We need that stuff for our alerts =/

@brancz
Copy link
Member

brancz commented Jan 31, 2017

@stvnwrgs I'm gonna be working towards a new release in the upcoming days. There are a few things that we want to include in this release that are not quite done, but should be relatively quick - so stay tuned, it should happen rather sooner than later! 🙂

@stvnwrgs
Copy link
Author

It's available in the current release

sthaha pushed a commit to sthaha/kube-state-metrics that referenced this issue Mar 9, 2022
[bot] Bump openshift/kube-state-metrics to v2.4.1
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

3 participants