Path: blob/main/operations/observability/mixins/IDE/rules/opensvx.yaml
2500 views
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.1# Licensed under the GNU Affero General Public License (AGPL).2# See License.AGPL.txt in the project root for license information.34apiVersion: monitoring.coreos.com/v15kind: PrometheusRule6metadata:7labels:8prometheus: k8s9role: alert-rules10name: openvsx-proxy-monitoring-rules11namespace: monitoring-satellite12spec:13groups:14- name: openvsx-proxy15rules:16- alert: GitpodOpenVSXRegistryDown17labels:18severity: critical19dedicated: included20for: 20m21annotations:22runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodOpenVsxRegistryDown.md23summary: Open-VSX registry is possibly down24description: Open-VSX registry is possibly down. We cannot pull VSCode extensions we don't have in our caches25dashboard_url: https://grafana.gitpod.io/d/HNOvmGpxgd/openvsx-proxy?var-cluster={{ $labels.cluster }}26expr: |27sum(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.012829- alert: GitpodOpenVSXUpstreamDown30labels:31severity: critical32for: 20m33annotations:34runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodOpenVSXUpstreamDown.md35summary: Open-VSX upstream is possibly down36description: Open-VSX upstream is possibly down.37dashboard_url: https://grafana.gitpod.io/d/WI_x6hN4k/openvsx-mirror?var-cluster=openvsx-mirror-us01&viewPanel=1338expr: |39sum(rate(http_client_requests_seconds_count{cluster="openvsx-mirror-us01",outcome!~"SUCCESS|REDIRECTION|CLIENT_ERROR"})[2m])/sum(rate(http_client_requests_seconds_count{cluster="openvsx-mirror-us01"})[2m]) > 0.014041- alert: GitpodOpenVSXUnavailable42labels:43severity: warning44team: ide45for: 10m46annotations:47summary: Prometheus is failing to scrape OpenVSX-proxy48description: OpenVSX-proxy(Pod {{ $labels.pod }}, cluster {{ $labels.cluster }}) is possibly down, or prometheus is failing to scrape it.49expr: up{job="openvsx-proxy"} == 0505152