[英]Does Prometheus expose the Horizontal Pod Autoscaler's “Current CPU Utilization” as shown in the Kubernetes dashboard?
In the Kubernetes dashboard, I can see for a HPA the following information: 在Kubernetes仪表板中,我可以看到HPA的以下信息:
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? 但是,我不知道如何计算10%的CPU使用率?
And if this value exposed via Prometheus? 如果这个价值通过普罗米修斯暴露了出来?
Current CPU utilization is relative to a target. 当前的CPU利用率是相对于目标的。 So in your case, for example, if its 10% above the target of 80%, then it would trigger an autoscaling event.
因此,以您的情况为例,例如,如果其目标值比80%的目标高10%,则它将触发自动缩放事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.