Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/IDE/rules/opensvx.yaml
2500 views
1
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License.AGPL.txt in the project root for license information.
4
5
apiVersion: monitoring.coreos.com/v1
6
kind: PrometheusRule
7
metadata:
8
labels:
9
prometheus: k8s
10
role: alert-rules
11
name: openvsx-proxy-monitoring-rules
12
namespace: monitoring-satellite
13
spec:
14
groups:
15
- name: openvsx-proxy
16
rules:
17
- alert: GitpodOpenVSXRegistryDown
18
labels:
19
severity: critical
20
dedicated: included
21
for: 20m
22
annotations:
23
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodOpenVsxRegistryDown.md
24
summary: Open-VSX registry is possibly down
25
description: Open-VSX registry is possibly down. We cannot pull VSCode extensions we don't have in our caches
26
dashboard_url: https://grafana.gitpod.io/d/HNOvmGpxgd/openvsx-proxy?var-cluster={{ $labels.cluster }}
27
expr: |
28
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
29
30
- alert: GitpodOpenVSXUpstreamDown
31
labels:
32
severity: critical
33
for: 20m
34
annotations:
35
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodOpenVSXUpstreamDown.md
36
summary: Open-VSX upstream is possibly down
37
description: Open-VSX upstream is possibly down.
38
dashboard_url: https://grafana.gitpod.io/d/WI_x6hN4k/openvsx-mirror?var-cluster=openvsx-mirror-us01&viewPanel=13
39
expr: |
40
sum(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.01
41
42
- alert: GitpodOpenVSXUnavailable
43
labels:
44
severity: warning
45
team: ide
46
for: 10m
47
annotations:
48
summary: Prometheus is failing to scrape OpenVSX-proxy
49
description: OpenVSX-proxy(Pod {{ $labels.pod }}, cluster {{ $labels.cluster }}) is possibly down, or prometheus is failing to scrape it.
50
expr: up{job="openvsx-proxy"} == 0
51
52