Skip to content

Commit f608648

Browse files
committed
[obs] Fix GitpodWorkspaceTooManyRegularNotActiveMk2 given https://www.gitpodstatus.com/incidents/bsrqgmsxw1gr
1 parent 343b06e commit f608648

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operations/observability/mixins/workspace/rules/satellite/workspaces.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
summary: too many running but inactive workspaces
2929
description: too many running but inactive workspaces.
3030
expr: |
31-
gitpod_workspace_regular_not_active_percentage_mk2 > 0.08
31+
sum(gitpod_workspace_regular_not_active_percentage_mk2) by(cluster) > 0.08
3232
AND
3333
sum(gitpod_ws_manager_mk2_workspace_activity_total) by(cluster) > 25
3434
@@ -41,6 +41,6 @@ spec:
4141
summary: workspaces are not starting.
4242
description: inactive regular workspaces exists but workspaces are not being started.
4343
expr: |
44-
avg_over_time(gitpod_workspace_regular_not_active_percentage_mk2[1m]) > 0
44+
sum by(cluster) (avg_over_time(gitpod_workspace_regular_not_active_percentage_mk2[1m]) > 0)
4545
AND
4646
rate(gitpod_ws_manager_mk2_workspace_startup_seconds_sum{type="Regular"}[1m]) == 0

0 commit comments

Comments
 (0)