Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/workspace/rules/central/ws-daemon.yaml
2506 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: ws-daemon-monitoring-central-rules
12
spec:
13
groups:
14
- name: ws-daemon
15
rules:
16
- alert: GitpodWsDaemonCrashLooping
17
labels:
18
severity: warning
19
annotations:
20
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWsDaemonCrashLooping.md
21
summary: Ws-daemon is crashlooping in cluster {{ $labels.cluster }}.
22
description: Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is restarting {{ printf "%.2f" $value }} times / 10 minutes.
23
expr: |
24
increase(kube_pod_container_status_restarts_total{container="ws-daemon"}[10m]) > 0
25
26
- alert: GitpodWsDaemonExcessiveGC
27
labels:
28
severity: warning
29
annotations:
30
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodWsDaemonExcessiveGC.md
31
summary: Pod {{ $labels.pod }} in cluster {{ $labels.cluster }} is doing excessive garbage collection.
32
description: Ws-daemon has excessive garbage collection time. Collecting garbage for more than 1 second.
33
expr: |
34
go_gc_duration_seconds{job="ws-daemon", quantile="1"} > 1
35
36