Skip to content

[obs] re-enable regular not active alerts #18341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
severity: critical
dedicated: included
annotations:
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodImageBuildDurationAnomaly.md
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodImagebuildDurationAnomaly.md
summary: image-builder duration is unusually high in cluster {{ $labels.cluster }}
description: Users are waiting too long for image builds
expr: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,30 @@ spec:
rules:
- alert: GitpodWorkspaceTooManyRegularNotActiveMk2
labels:
severity: warning
severity: critical
# TODO: uncomment after recording rule import is working in Grafana Cloud
# dedicated: included
for: 10m
annotations:
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWorkspaceTooManyRegularNotActive.md
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWorkspaceRegularNotActive.md
summary: too many running but inactive workspaces
description: too many running but inactive workspaces.
expr: |
gitpod_workspace_regular_not_active_percentage_mk2 > 0.08
sum(gitpod_workspace_regular_not_active_percentage_mk2) by(cluster) > 0.08
AND
sum(gitpod_ws_manager_mk2_workspace_activity_total) by(cluster) > 25

- alert: GitpodWorkspacesNotStartingMk2
labels:
severity: warning
severity: critical
# TODO: uncomment after recording rule import is working in Grafana Cloud
# dedicated: included
for: 10m
annotations:
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWorkspaceNotStarting.md
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWorkspaceRegularNotActive.md
summary: workspaces are not starting.
description: inactive regular workspaces exists but workspaces are not being started.
expr: |
avg_over_time(gitpod_workspace_regular_not_active_percentage_mk2[1m]) > 0
sum by(cluster) (avg_over_time(gitpod_workspace_regular_not_active_percentage_mk2[1m]) > 0)
AND
rate(gitpod_ws_manager_mk2_workspace_startup_seconds_sum{type="Regular"}[1m]) == 0
sum by(cluster) (rate(gitpod_ws_manager_mk2_workspace_startup_seconds_sum{type="Regular"}[1m])) == 0