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.Namespace }}"}) * 100 / avg(minio_cluster_capacity_usable_total_bytes{namespace="{{ .Release.Namespace }}"}) < 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.Namespace }}"}) * 100 / avg(minio_cluster_capacity_usable_total_bytes{namespace="{{ .Release.Namespace }}"}) < 10 annotations: message: there is less than 10% left. plz check for deletion or increase capacity