Kube-state-metrics: Not able to get kube_pod_container_limits_cpu_cores metric

Created on 9 Jan 2017  ·  7Comments  ·  Source: kubernetes/kube-state-metrics

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

Most helpful comment

@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! :slightly_smiling_face:

All 7 comments

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?

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

I get the same issue.

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.

@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 =/

@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! :slightly_smiling_face:

It's available in the current release

Was this page helpful?
0 / 5 - 0 ratings