简体   繁体   English

Prometheus是否如Kubernetes仪表板所示公开了Horizo​​ntal Pod Autoscaler的“当前CPU使用率”?

[英]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.

相关问题 Kubernetes Horizo​​ntal Pod Autoscaler 如何计算多容器 Pod 的 CPU 利用率? - How does Kubernetes Horizontal Pod Autoscaler calculate CPU Utilization for Multi Container Pods? Kubernetes | 使用Prometheus监视HPA当前和目标CPU利用率 - Kubernetes | Monitor HPA's Current and Target CPU Utilization using Prometheus Horizo​​ntal Pod Autoscaler (HPA):当前利用率:<unknown> 使用自定义命名空间 - Horizontal Pod Autoscaler (HPA): Current utilization: <unknown> with custom namespace 具有Pometheus的自定义指标的水平Pod Autoscaler和百分位数的CPU使用率 - Horizontal Pod Autoscaler with custom metrics from Prometheus with percentiles for CPU usage HPA(水平 pod 自动缩放器)`currentCPUUtilizationPercentage` 的 Kube.netes Prometheus 指标? - Kubernetes Prometheus metric for HPA (horizontal pod autoscaler) `currentCPUUtilizationPercentage`? Kubernetes Horizo​​ntal Pod Autoscaler如何计算CPU百分比? - How Kubernetes Horizontal Pod Autoscaler calculates CPU percentage? 在 AWS EKS 中,HPA (horizontal-pod-autoscaler) 无法获取 cpu 利用率 - In AWS EKS, HPA (horizontal-pod-autoscaler) failed to get cpu utilization Kubernetes Horizo​​ntal Pod Autoscaler不使用节点资源 - Kubernetes Horizontal Pod Autoscaler not utilising node resources Kubernetes 水平 Pod 自动缩放器 (HPA) 测试 - Kubernetes Horizontal Pod Autoscaler (HPA) Testing 使用ArangoDB Kubernetes运算符的水平Pod自动缩放器 - Horizontal Pod Autoscaler with the ArangoDB Kubernetes Operator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM