Skip to content

Commit a7be151

Browse files
committed
[obs] reduce false positives for GitpodImageBuildDurationAnomaly
1 parent 051f000 commit a7be151

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

operations/observability/mixins/workspace/rules/central/image-builder.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ spec:
1818
severity: critical
1919
annotations:
2020
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodImagebuildDurationAnomaly.md
21-
summary: image-builder duration is unusually high in cluster {{ $labels.cluster }}
22-
description: Users are waiting too long for image builds
21+
summary: image builds are happening too frequently in cluster {{ $labels.cluster }}
22+
description: Users are waiting more often for image builds
2323
expr: |
24-
(avg_over_time(gitpod_ws_manager_mk2_workspace_phase_total{phase="Running", type="ImageBuild", cluster!~"ephemeral.*"}[1h])-avg_over_time(gitpod_ws_manager_mk2_workspace_phase_total{phase="Running", type="ImageBuild", cluster!~"ephemeral.*"}[1d]))
25-
/
26-
stddev_over_time(gitpod_ws_manager_mk2_workspace_phase_total{phase="Running", type="ImageBuild", cluster!~"ephemeral.*"}[14d]) >=2.0
24+
(
25+
(
26+
avg_over_time(gitpod_ws_manager_mk2_workspace_phase_total{phase="Running", type="ImageBuild", cluster!~"ephemeral.*"}[4h])
27+
- avg_over_time(gitpod_ws_manager_mk2_workspace_phase_total{phase="Running", type="ImageBuild", cluster!~"ephemeral.*"}[7d])
28+
)
29+
/ stddev_over_time(gitpod_ws_manager_mk2_workspace_phase_total{phase="Running", type="ImageBuild", cluster!~"ephemeral.*"}[30d])
30+
) > 2.5
2731
- alert: GitpodImageBuilderCrashlooping
2832
labels:
2933
severity: critical

0 commit comments

Comments
 (0)