-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheusrules.yaml
41 lines (40 loc) · 1.64 KB
/
prometheusrules.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: k8s
role: alert-rules
name: minio-tracing-rules
namespace: tracing
spec:
groups:
- name: minio.rules
rules:
- alert: MinioTracingClusterDiskOffline
expr: minio_cluster_disk_offline_total{job="minio-tracing"} > 0
for: 5m
labels:
severity: critical
annotations:
summary: Minio cluster disk offline (instance {{ $labels.instance }})
description: "Minio cluster disk is offline\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: MinioTracingNodeDiskOffline
expr: minio_cluster_nodes_offline_total{job="minio-tracing"} > 0
for: 5m
labels:
severity: critical
annotations:
summary: Minio node disk offline (instance {{ $labels.instance }})
description: "Minio cluster node disk is offline\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: MinioTracingDiskSpaceUsage
expr: minio_cluster_capacity_usable_free_bytes{job="minio-tracing"} / minio_cluster_capacity_usable_total_bytes{job="minio-tracing"} * 100 < 10
for: 5m
labels:
severity: warning
annotations:
summary: Minio disk space usage (instance {{ $labels.instance }})
description: "Minio available free space is low (< 10%)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"