Skip to content

Commit 8701732

Browse files
geroplroboquat
authored andcommitted
[ops] WebApp: alert if db-sync is not running
1 parent 4035d12 commit 8701732

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

operations/observability/mixins/meta/rules/components/server/alerts.libsonnet

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,25 @@
8282
description: 'Websocket connection rate high',
8383
},
8484
},
85+
/**
86+
* TODO(gpl) This will be true for US all the time. Can we exclude that cluster somehow?
87+
* {
88+
* alert: 'db-sync not running',
89+
* expr: 'sum (kube_pod_status_phase{pod=~"db-sync.*"}) by (pod) < 1',
90+
* 'for': '5m',
91+
* labels: {
92+
* // sent to the team internal channel until we fine tuned it
93+
* severity: 'warning',
94+
* team: 'webapp'
95+
* },
96+
* annotations: {
97+
* runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/DbSyncNotRunning.md',
98+
* summary: 'The db-sync pod is not running. Investigation required.',
99+
* description: 'db-sync pod not running',
100+
* },
101+
* },
102+
*
103+
*/
85104
{
86105
alert: 'MessagebusNotRunning',
87106
expr: 'up{job="messagebus"} < 1',

0 commit comments

Comments
 (0)