Skip to content

Commit a48e177

Browse files
Prince Rachit Sinharoboquat
authored andcommitted
Add alerts for excessive GC of ws-daemon
1 parent c0bbf91 commit a48e177

File tree

1 file changed

+29
-1
lines changed
  • operations/observability/mixins/workspace/rules/components/ws-daemon

1 file changed

+29
-1
lines changed

operations/observability/mixins/workspace/rules/components/ws-daemon/alerts.libsonnet

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,36 @@
2323
increase(kube_pod_container_status_restarts_total{container="ws-daemon"}[10m]) > 0
2424
|||,
2525
},
26+
{
27+
alert: 'GitpodWsDaemonExcessiveGC',
28+
labels: {
29+
severity: 'warning',
30+
},
31+
annotations: {
32+
runbook_url: '',
33+
summary: 'Ws-daemon is doing excessive garbage collection.',
34+
description: 'Ws-daemon has excessive garbage collection time. Collecting garbage for more than 1 second.',
35+
},
36+
expr: |||
37+
go_gc_duration_seconds{job="ws-daemon", quantile="1"} > 1
38+
|||,
39+
},
40+
{
41+
alert: 'GitpodWsDaemonExcessiveGC',
42+
labels: {
43+
severity: 'critical',
44+
},
45+
annotations: {
46+
runbook_url: '',
47+
summary: 'Ws-daemon is doing excessive garbage collection.',
48+
description: 'Ws-daemon has excessive garbage collection time. Collecting garbage for more than 1 minute.',
49+
},
50+
expr: |||
51+
go_gc_duration_seconds{job="ws-daemon", quantile="1"} > 60
52+
|||,
53+
},
2654
],
2755
},
2856
],
2957
},
30-
}
58+
}

0 commit comments

Comments
 (0)