Path: blob/main/operations/observability/mixins/meta/rules/db.yaml
2500 views
apiVersion: monitoring.coreos.com/v11kind: PrometheusRule2metadata:3labels:4prometheus: k8s5role: alert-rules6name: db-monitoring-rules7spec:8groups:9- name: db10rules:11- alert: DBHighCPUUsage12# Reasoning: high rates of CPU consumption should only be temporary.13expr: avg(rate(container_cpu_usage_seconds_total{container!="POD", pod=~"db-.*"}[5m])) by (cluster) > 0.414for: 10m15labels:16# sent to the team internal channel until we fine tuned it17severity: warning18team: webapp19annotations:20runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/WebAppServicesHighCPUUsage.md21summary: DB has excessive CPU usage.22description: DB is consumming too much CPU. Please investigate.23dashboard_url: https://grafana.gitpod.io/d/6581e46e4e5c7ba40a07646395ef7b23/kubernetes-compute-resources-pod?var-cluster={{ $labels.cluster }}&var-namespace=default242526