Merge "Add Prometheus alerts"
diff --git a/ceph/meta/prometheus.yml b/ceph/meta/prometheus.yml
new file mode 100644
index 0000000..396c157
--- /dev/null
+++ b/ceph/meta/prometheus.yml
@@ -0,0 +1,26 @@
+{%- from "ceph/map.jinja" import monitoring with context %}
+
+{%- if monitoring.cluster_stats.get('enabled') and monitoring.cluster_stats.ceph_user is defined %}
+{% raw %}
+server:
+  alert:
+    CephHealthError:
+      if: >-
+        ceph_overall_health == 3
+      labels:
+        severity: critical
+        service: ceph
+      annotations:
+        summary: "Ceph health critical"
+        description: "Ceph health is 'critical'. Run 'ceph -s' to get details."
+    CephHealthError:
+      if: >-
+        ceph_overall_health == 2
+      labels:
+        severity: warning
+        service: ceph
+      annotations:
+        summary: "Ceph health warning"
+        description: "Ceph health is 'warning'. Run 'ceph -s' to get details."
+{% endraw %}
+{%- endif %}
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index d245299..e5afb0d 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -11,3 +11,5 @@
         enabled: true
       telegraf:
         enabled: true
+      prometheus:
+        enabled: true