Skip to content

Commit

Permalink
fix prometheus rule for workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sagor999 authored and roboquat committed Sep 21, 2022
1 parent c5c5be9 commit ea8fbdc
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit ea8fbdc

Please sign in to comment.