Path: blob/main/operations/observability/mixins/self-hosted/rules/observability-stack/kube-state-metrics.yaml
3640 views
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.1# Licensed under the GNU Affero General Public License (AGPL).2# See License.AGPL.txt in the project root for license information.34apiVersion: monitoring.coreos.com/v15kind: PrometheusRule6metadata:7labels:8app.kubernetes.io/name: kubernetes9app.kubernetes.io/part-of: kube-prometheus10prometheus: k8s11role: alert-rules12name: kube-state-metrics-monitoring-rules13namespace: monitoring-satellite14spec:15groups:16- name: kube-state-metrics17rules:18- alert: KubeStateMetricsWatchErrors19annotations:20description: kube-state-metrics is experiencing errors at an elevated rate in watch operations. This is likely causing it to not be able to expose metrics about Kubernetes objects correctly or at all.21summary: kube-state-metrics is experiencing errors in watch operations.22expr: |23(sum(rate(kube_state_metrics_watch_total{job="kube-state-metrics",result="error"}[5m]))24/25sum(rate(kube_state_metrics_watch_total{job="kube-state-metrics"}[5m])))26> 0.0127for: 15m28labels:29severity: critical30team: delivery-operations-experience313233