Path: blob/main/operations/observability/mixins/workspace/rules/central/ws-daemon.yaml
2506 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: ws-daemon-monitoring-central-rules11spec:12groups:13- name: ws-daemon14rules:15- alert: GitpodWsDaemonCrashLooping16labels:17severity: warning18annotations:19runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWsDaemonCrashLooping.md20summary: Ws-daemon is crashlooping in cluster {{ $labels.cluster }}.21description: Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is restarting {{ printf "%.2f" $value }} times / 10 minutes.22expr: |23increase(kube_pod_container_status_restarts_total{container="ws-daemon"}[10m]) > 02425- alert: GitpodWsDaemonExcessiveGC26labels:27severity: warning28annotations:29runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWsDaemonExcessiveGC.md30summary: Pod {{ $labels.pod }} in cluster {{ $labels.cluster }} is doing excessive garbage collection.31description: Ws-daemon has excessive garbage collection time. Collecting garbage for more than 1 second.32expr: |33go_gc_duration_seconds{job="ws-daemon", quantile="1"} > 1343536