Skip to content

Commit fa93d90

Browse files
add Prometheus scrape related alerts
add Prometheus scrape related alerts
1 parent 3ae33bf commit fa93d90

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

charts/ceph-operations/alerts/generic.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,30 @@ groups:
1818
documentation: "https://docs.ceph.com/en/latest/rados/operations/health-checks/#recent-crash"
1919
summary: "One or more Ceph daemons have crashed, and are pending acknowledgement"
2020
{{- end }}
21+
22+
{{- if not (.Values.prometheusRules.disabled.PrometheusJobMissing | default false) }}
23+
- alert: "PrometheusJobMissing"
24+
expr: "absent(up{job=\"rook-ceph-mgr\"})"
25+
for: "30s"
26+
labels:
27+
oid: "1.3.6.1.4.1.50495.1.2.1.12.1"
28+
severity: "critical"
29+
type: "ceph_default"
30+
annotations:
31+
description: "The prometheus job that scrapes from Ceph MGR is no longer defined, this will effectively mean you'll have no metrics or alerts for the cluster. Please review the job definitions in the prometheus.yml file of the prometheus instance."
32+
summary: "The scrape job for Ceph MGR is missing from Prometheus"
33+
{{- end }}
34+
35+
{{- if not (.Values.prometheusRules.disabled.PrometheusJobExporterMissing | default false) }}
36+
- alert: "PrometheusJobExporterMissing"
37+
expr: "sum(absent(up{job=\"rook-ceph-exporter\"})) and sum(ceph_osd_metadata{ceph_version=~\"^ceph version (1[89]|[2-9][0-9]).*\"}) > 0"
38+
for: "30s"
39+
labels:
40+
oid: "1.3.6.1.4.1.50495.1.2.1.12.1"
41+
severity: "critical"
42+
type: "ceph_default"
43+
annotations:
44+
description: "The prometheus job that scrapes from Ceph Exporter is no longer defined, this will effectively mean you'll have no metrics or alerts for the cluster. Please review the job definitions in the prometheus.yml file of the prometheus instance."
45+
summary: "The scrape job for Ceph Exporter is missing from Prometheus"
46+
{{- end }}
2147
{{- end }}

0 commit comments

Comments
 (0)