Skip to content

Commit 5a00651

Browse files
geroplroboquat
authored andcommitted
[ops] WebApp: Internal alert on JSON RPC error rates
1 parent 313b522 commit 5a00651

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,23 @@
4949
description: 'Server cannot start workspace instances on workspace clusters.',
5050
},
5151
},
52+
// Rollout alerts
53+
{
54+
alert: 'JsonRpcApiErrorRates',
55+
// Reasoning: the values are taken from past data
56+
expr: 'sum (rate(gitpod_server_api_calls_total{statusCode!~"2..|429"}[5m])) / sum(rate(gitpod_server_api_calls_total[5m])) > 0.04',
57+
'for': '5m',
58+
labels: {
59+
// sent to the team internal channel until we fine tuned it
60+
severity: 'warning',
61+
team: 'webapp'
62+
},
63+
annotations: {
64+
runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodApiErrorRate.md',
65+
summary: 'The error rate of the JSON RPC API is high. Investigation required.',
66+
description: 'JSON RPC API error rate high',
67+
},
68+
},
5269
],
5370
},
5471
],

0 commit comments

Comments
 (0)