Skip to content

Commit

Permalink
Add alerts for excessive GC of ws-daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince Rachit Sinha authored and roboquat committed Feb 14, 2022
1 parent c0bbf91 commit a48e177
Showing 1 changed file with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,36 @@
increase(kube_pod_container_status_restarts_total{container="ws-daemon"}[10m]) > 0
|||,
},
{
alert: 'GitpodWsDaemonExcessiveGC',
labels: {
severity: 'warning',
},
annotations: {
runbook_url: '',
summary: 'Ws-daemon is doing excessive garbage collection.',
description: 'Ws-daemon has excessive garbage collection time. Collecting garbage for more than 1 second.',
},
expr: |||
go_gc_duration_seconds{job="ws-daemon", quantile="1"} > 1
|||,
},
{
alert: 'GitpodWsDaemonExcessiveGC',
labels: {
severity: 'critical',
},
annotations: {
runbook_url: '',
summary: 'Ws-daemon is doing excessive garbage collection.',
description: 'Ws-daemon has excessive garbage collection time. Collecting garbage for more than 1 minute.',
},
expr: |||
go_gc_duration_seconds{job="ws-daemon", quantile="1"} > 60
|||,
},
],
},
],
},
}
}

0 comments on commit a48e177

Please sign in to comment.