-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add target and current cpu utilization in hpa metrics #768
Comments
Utilization metrics should be scraped from cAdvisor, which is built into the kubernetes kubelet. kube-state-metrics is just about converting API objects to Prometheus metrics. |
@brancz The HPA target CPU utilization isn't published by cAdvisor is it? It seems like there should be another HPA metric like kube_hpa_spec_target{metric="cpu"...} or something along those lines that can publish the resource target part of the HPA spec. I may be missing something as I'm still pretty new to k8s. |
Sorry I think I misunderstood last time, as this is more or less a static value on the HPA object, this should indeed come from kube-state-metrics. /reopen |
@brancz: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@brancz Is this something I can contribute? |
I believe it’s already in progress #961 |
IIUC that PR doesn't include the target utilization values specified in the Spec, only the current utilization values in the Status. |
You're right. Feel free to open another PR in that case :) |
Here goes nothing! |
Want to monitor the current and target CPU utilization for deployments via Prometheus. However, it does not seem to available in the current list of HPA metrics (https://github.com/kubernetes/kube-state-metrics/blob/1dfe6681e9/docs/horizontalpodautoscaler-metrics.md).
Is there any other way to get these values in Prometheus? If not, can they be added to the HPA metrics?
The text was updated successfully, but these errors were encountered: