Path: blob/main/operations/observability/mixins/IDE/rules/ssh-gateway.yaml
2501 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: ssh-gateway-monitoring-rules11namespace: monitoring-satellite12spec:13groups:14- name: ssh-gateway15rules:16- alert: SSHGatewayFailingToConnect17labels:18severity: critical19for: 20m20annotations:21runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/SSHGatewayFailingToConnect.md22summary: SSH connectivity issues23description: SSH Gateway is failing to connect to SSH servers in Gitpod workspaces24dashboard_url: https://grafana.gitpod.io/d/3oan1Zr7k/ssh-gateway-overview?orgId=1&refresh=30s&from=now-2d&to=now25expr: |26sum 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.01272829