patternkubernetesMinor
Does Prometheus expose the Horizontal Pod Autoscaler's "Current CPU Utilization" as shown in the Kubernetes dashboard?
Viewed 0 times
dashboardexposetheutilizationkubernetesshownprometheushorizontaldoescurrent
Problem
In the Kubernetes dashboard, I can see for a HPA the following information:
However, I can't figure out how the 10% CPU utilization is calculated?
And if this value exposed via Prometheus?
Min Replicas:
3
Max Replicas:
11
Target CPU Utilization:
80%
Status
Current Replicas:
3
Desired Replicas:
3
Current CPU Utilization:
10%
Last Scaled:
5 daysHowever, I can't figure out how the 10% CPU utilization is calculated?
And if this value exposed via Prometheus?
Solution
As we can see from kube-state-metrics/docs/horizontalpodautoscaler-metrics.md
We just need to have kube-state-metrics along with HPA to start getting metrics in prometheus.
We just need to have kube-state-metrics along with HPA to start getting metrics in prometheus.
Context
StackExchange DevOps Q#6244, answer score: 1
Revisions (0)
No revisions yet.