You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sum(namespace_cpu:kube_pod_container_resource_requests:sum{%(kubeStateMetricsSelector)s,%(ignoringOverprovisionedWorkloadSelector)s}) by (%(clusterLabel)s) - (sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s)) > 0
and
(sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s)) > 0
||| % $._config,
annotations+: {
description:'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Pods by {{ $value }} CPU shares and cannot tolerate node failure.' % $._config,
},
The namespace_cpu:kube_pod_container_resource_requests:sum metric is missing the kubeStateMetricsSelector ( job="kube-state-metrics) label. It only has cluster and namespace labels.
Hi,
Multicluster version of the alert KubeCPUOvercommit is broken.
kubernetes-mixin/alerts/resource_alerts.libsonnet
Lines 35 to 43 in 033a6fb
The namespace_cpu:kube_pod_container_resource_requests:sum metric is missing the kubeStateMetricsSelector ( job="kube-state-metrics) label. It only has cluster and namespace labels.
kubernetes-mixin/rules/apps.libsonnet
Lines 118 to 131 in 033a6fb
The text was updated successfully, but these errors were encountered: