Skip to content
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

fix prometheus rule for workspaces #13190

Merged
merged 1 commit into from
Sep 21, 2022
Merged
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 @@ -27,7 +27,7 @@ spec:
annotations:
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWorkspaceStuckOnStarting.md
summary: 5 or more workspaces are stuck on starting
description: "{{ printf '%.2f' $value }} regular workspaces are stuck on starting for more than 20 minutes. Current status: {{ $labels.reason }}"
description: '{{ printf "%.2f" $value }} regular workspaces are stuck on starting for more than 20 minutes. Current status: {{ $labels.reason }}'
expr: |
count(
kube_pod_container_status_waiting_reason * on(pod) group_left kube_pod_labels{component="workspace", workspace_type="regular"}
Expand All @@ -40,7 +40,7 @@ spec:
annotations:
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWorkspaceStuckOnStopping.md
summary: 5 or more workspaces are stuck on stopping
description: "{{ printf '%.2f' $value }} {{ $labels.workspace_type }} workspaces are stuck on stopping for more than 20 minutes."
description: '{{ printf "%.2f" $value }} {{ $labels.workspace_type }} workspaces are stuck on stopping for more than 20 minutes.'
expr: |
sum(
gitpod_ws_manager_workspace_phase_total{type="REGULAR", phase="STOPPING"}
Expand Down