mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
|
|
# Licensed under the GNU Affero General Public License (AGPL).
|
|
# See License-AGPL.txt in the project root for license information.
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PrometheusRule
|
|
metadata:
|
|
labels:
|
|
prometheus: k8s
|
|
role: alert-rules
|
|
name: ssh-gateway-monitoring-rules
|
|
namespace: monitoring-satellite
|
|
spec:
|
|
groups:
|
|
- name: ssh-gateway
|
|
rules:
|
|
- alert: SSHGatewayFailingToConnect
|
|
labels:
|
|
severity: critical
|
|
for: 20m
|
|
annotations:
|
|
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/SSHGatewayFailingToConnect.md
|
|
summary: SSH connectivity issues
|
|
description: SSH Gateway is failing to connect to SSH servers in Gitpod workspaces
|
|
dashboard_url: https://grafana.gitpod.io/d/3oan1Zr7k/ssh-gateway-overview?orgId=1&refresh=30s&from=now-2d&to=now
|
|
expr: |
|
|
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
|