Skip to content

Commit d394c24

Browse files
geroplroboquat
authored andcommitted
[ops] WebApp: high websocket connection rate
1 parent 5a00651 commit d394c24

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@
6666
description: 'JSON RPC API error rate high',
6767
},
6868
},
69+
{
70+
alert: 'WebsocketConnectionRateHigh',
71+
// Reasoning: the values are taken from past data
72+
expr: 'sum(rate(server_websocket_connection_count[2m])) > 30',
73+
'for': '5m',
74+
labels: {
75+
// sent to the team internal channel until we fine tuned it
76+
severity: 'warning',
77+
team: 'webapp'
78+
},
79+
annotations: {
80+
runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/WebsocketConnectionRateHigh.md',
81+
summary: 'The websocket connection rate is higher than usual. Investigation required.',
82+
description: 'Websocket connection rate high',
83+
},
84+
},
6985
],
7086
},
7187
],

0 commit comments

Comments
 (0)