Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/platform/rules/kubernetes/nodes.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
app.kubernetes.io/name: kubernetes
10
app.kubernetes.io/part-of: kube-prometheus
11
prometheus: k8s
12
role: alert-rules
13
name: node-monitoring-rules
14
namespace: monitoring-satellite
15
spec:
16
groups:
17
- name: node
18
rules:
19
- alert: NodeFilesystemAlmostOutOfSpace
20
annotations:
21
description: Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.
22
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/NodeFilesystemAlmostOutOfSpace.md
23
summary: Filesystem has less than 3% space left.
24
expr: |
25
(
26
node_filesystem_avail_bytes{job="node-exporter",fstype!="shiftfs"} / node_filesystem_size_bytes{job="node-exporter",fstype!="shiftfs"} * 100 < 3
27
and
28
node_filesystem_readonly{job="node-exporter",fstype!="shiftfs"} == 0
29
)
30
for: 15m
31
labels:
32
severity: critical
33
team: platform
34
- alert: NodeFilesystemAlmostOutOfFiles
35
annotations:
36
description: Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left.
37
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/NodeFilesystemAlmostOutOfFiles.md
38
summary: Filesystem has less than 3% inodes left.
39
expr: |
40
(
41
node_filesystem_files_free{job="node-exporter",fstype!="shiftfs"} / node_filesystem_files{job="node-exporter",fstype!="shiftfs"} * 100 < 3
42
and
43
node_filesystem_readonly{job="node-exporter",fstype!="shiftfs"} == 0
44
)
45
for: 1h
46
labels:
47
severity: critical
48
team: platform
49
50