Add Prometheus alerts
Change-Id: I9b6890d0fe727c145f5002a48e73d93ce6e6f9dc
diff --git a/kibana/meta/prometheus.yml b/kibana/meta/prometheus.yml
new file mode 100644
index 0000000..82f5e8e
--- /dev/null
+++ b/kibana/meta/prometheus.yml
@@ -0,0 +1,17 @@
+{%- from "kibana/map.jinja" import server with context %}
+{%- if server.get('enabled', False) %}
+server:
+ alert:
+ ProcstatRunningKibana:
+ if: >-
+ procstat_running{process_name="kibana"} == 0
+ {% raw %}
+ labels:
+ severity: warning
+ service: kibana
+ annotations:
+ summary: 'Kibana service is down'
+ description: 'Kibana service is down on node {{ $labels.host }}'
+ {% endraw %}
+{%- endif %}
+
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 005b24e..5146360 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -13,3 +13,5 @@
enabled: true
telegraf:
enabled: true
+ prometheus:
+ enabled: true