Does Prometheus expose the Horizontal Pod Autoscaler's “Current CPU Utilization” as shown in the Kubernetes dashboard?

2/6/2019

In the Kubernetes dashboard, I can see for a HPA the following information:

Min Replicas:
3
Max Replicas:
11
Target CPU Utilization:
80%
Status
Current Replicas:
3
Desired Replicas:
3
Current CPU Utilization:
10%
Last Scaled:
5 days

However, I can't figure out how the 10% CPU utilization is calculated?

And if this value exposed via Prometheus?

-- Darragh
kubernetes
prometheus

1 Answer

2/6/2019

Current CPU utilization is relative to a target. So in your case, for example, if its 10% above the target of 80%, then it would trigger an autoscaling event.

-- jayunit100
Source: StackOverflow