kubernetes-monitoring / kubernetes-mixin

A set of Grafana dashboards and Prometheus alerts for Kubernetes.
Apache License 2.0
2.12k stars 596 forks source link

KubeCPUOvercommit alert is broken #933

Closed qxrpub closed 2 months ago

qxrpub commented 6 months ago

Hi,

Multicluster version of the alert KubeCPUOvercommit is broken.

https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/033a6fb33be80d381045dc570fc53f0b7750e8b6/alerts/resource_alerts.libsonnet#L35-L43

The _namespace_cpu:kube_pod_container_resourcerequests:sum metric is missing the kubeStateMetricsSelector ( job="kube-state-metrics) label. It only has cluster and namespace labels.

https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/033a6fb33be80d381045dc570fc53f0b7750e8b6/rules/apps.libsonnet#L118-L131

qxrpub commented 2 months ago

already fixed by #947