Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/meta/rules/content-service.yaml
2500 views
1
apiVersion: monitoring.coreos.com/v1
2
kind: PrometheusRule
3
metadata:
4
labels:
5
prometheus: k8s
6
role: alert-rules
7
name: content-service-monitoring-rules
8
spec:
9
groups:
10
- name: content-service
11
rules:
12
- alert: ContentServiceHighCPUUsage
13
# Reasoning: high rates of CPU consumption should only be temporary.
14
expr: avg(rate(container_cpu_usage_seconds_total{container!="POD", pod=~"content-service-.*"}[5m])) by (cluster) > 0.1
15
for: 10m
16
labels:
17
# sent to the team internal channel until we fine tuned it
18
severity: warning
19
team: webapp
20
annotations:
21
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/WebAppServicesHighCPUUsage.md
22
summary: Content Service has excessive CPU usage.
23
description: Content Service is consumming too much CPU. Please investigate.
24
dashboard_url: https://grafana.gitpod.io/d/6581e46e4e5c7ba40a07646395ef7b23/kubernetes-compute-resources-pod?var-cluster={{ $labels.cluster }}&var-namespace=default
25
26