Skip to content

Commit 63fc751

Browse files
committed
Warn when IPFS is running out of storage
1 parent 58da110 commit 63fc751

File tree

1 file changed

+25
-0
lines changed
  • operations/observability/mixins/workspace/rules/central

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2023 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: ipfs-monitoring-rules
12+
spec:
13+
groups:
14+
- name: ipfs-alerts
15+
rules:
16+
- alert: IPFSAlmostOutOfStorage
17+
labels:
18+
severity: warning
19+
team: workspace
20+
for: 10m
21+
annotations:
22+
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/IPFSAlmostOutOfStorage.md
23+
summary: IPFS is running out of storage within a few days in a workspace cluster. Create and shift to a new workspace cluster with a fresh IPFS.
24+
description: IPFS in cluster {{ $labels.cluster }} is running out of storage. This happens naturally for workspace clusters over time, and is prevented by recreating the clusters regularly. Once out of storage, IPFS will stop working, and we fall back to the GCP registry for workspace image pulls, resulting in slower workspace startup times.
25+
expr: min(node_filesystem_avail_bytes{device="/dev/mapper/lvm--disk-ipfs", node=~"services-.*", cluster!~"ephemeral.*"}) by (cluster) < 600*1024*1024*1024

0 commit comments

Comments
 (0)