You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: PrometheusRule
|
|
metadata:
|
|
labels:
|
|
prometheus: kube-prometheus-stack-prometheus
|
|
role: alert-rules
|
|
release: kube-prometheus-stack
|
|
name: s3-capacity
|
|
spec:
|
|
groups:
|
|
- name: "s3_monitoring.rules"
|
|
rules:
|
|
- alert: s3_cluster_capacity_warning
|
|
for: 10m
|
|
labels:
|
|
severity: warning
|
|
expr: avg(minio_cluster_capacity_usable_free_bytes{namespace="{{ .Release.Name }}"}) * 100 / avg(minio_cluster_capacity_usable_total_bytes{namespace="{{ .Release.Name }}"}) < 15
|
|
annotations:
|
|
message: there is less than 15% left. plz check for deletion or increase capacity
|
|
- alert: s3_cluster_capacity_critical
|
|
for: 10m
|
|
labels:
|
|
severity: critical
|
|
expr: avg(minio_cluster_capacity_usable_free_bytes{namespace="{{ .Release.Name }}"}) * 100 / avg(minio_cluster_capacity_usable_total_bytes{namespace="{{ .Release.Name }}"}) < 10
|
|
annotations:
|
|
message: there is less than 10% left. plz check for deletion or increase capacity
|