Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/IDE/rules/ssh-gateway.yaml
2501 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: ssh-gateway-monitoring-rules
12
namespace: monitoring-satellite
13
spec:
14
groups:
15
- name: ssh-gateway
16
rules:
17
- alert: SSHGatewayFailingToConnect
18
labels:
19
severity: critical
20
for: 20m
21
annotations:
22
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/SSHGatewayFailingToConnect.md
23
summary: SSH connectivity issues
24
description: SSH Gateway is failing to connect to SSH servers in Gitpod workspaces
25
dashboard_url: https://grafana.gitpod.io/d/3oan1Zr7k/ssh-gateway-overview?orgId=1&refresh=30s&from=now-2d&to=now
26
expr: |
27
sum by (error_type) (rate(gitpod_ws_proxy_ssh_attempt_total{error_type="CONN_FAILED",status="failed"}[5m])) / sum(rate(gitpod_ws_proxy_ssh_attempt_total{error_type!~"WS_ID_INVALID|OTHERS"}[5m])) > 0.01
28
29