From 89a06489dd222dcff88818fa1fcfe92c0cec3ba0 Mon Sep 17 00:00:00 2001 From: ArthurSens Date: Thu, 13 Oct 2022 12:20:22 +0000 Subject: [PATCH] Adjust IDE alerts to work with centralized alerting Signed-off-by: ArthurSens --- operations/observability/mixins/IDE/rules/opensvx.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/operations/observability/mixins/IDE/rules/opensvx.yaml b/operations/observability/mixins/IDE/rules/opensvx.yaml index ba6ef90559203b..0f29c8ad2c373a 100644 --- a/operations/observability/mixins/IDE/rules/opensvx.yaml +++ b/operations/observability/mixins/IDE/rules/opensvx.yaml @@ -22,9 +22,9 @@ spec: runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodOpenVsxRegistryDown.md summary: Open-VSX registry is possibly down description: Open-VSX registry is possibly down. We cannot pull VSCode extensions we don't have in our caches - dashboard_url: https://grafana.gitpod.io/d/HNOvmGpxgd/openvsx-proxy + dashboard_url: https://grafana.gitpod.io/d/HNOvmGpxgd/openvsx-proxy?var-cluster={{ $labels.cluster }} expr: | - sum(rate(gitpod_vscode_extension_gallery_query_total{status="failure",errorCode!="canceled"}[5m])) / sum(rate(gitpod_vscode_extension_gallery_query_total[5m])) > 0.01 + sum(rate(gitpod_vscode_extension_gallery_query_total{status="failure",errorCode!="canceled"}[5m])) by(cluster) / sum(rate(gitpod_vscode_extension_gallery_query_total[5m])) by(cluster) > 0.01 - alert: GitpodOpenVSXUnavailable labels: @@ -33,5 +33,5 @@ spec: for: 10m annotations: summary: Prometheus is failing to scrape OpenVSX-proxy - description: OpenVSX-proxy is possibly down, or prometheus is failing to scrape it. + description: OpenVSX-proxy(Pod {{ $labels.pod }}, cluster {{ $labels.cluster }}) is possibly down, or prometheus is failing to scrape it. expr: up{job="openvsx-proxy"} == 0