Merge "Add Grafana dashboard with Prometheus datasource"
diff --git a/memcached/meta/prometheus.yml b/memcached/meta/prometheus.yml
new file mode 100644
index 0000000..9a5f427
--- /dev/null
+++ b/memcached/meta/prometheus.yml
@@ -0,0 +1,16 @@
+{%- from "memcached/map.jinja" import server with context %}
+{%- if server.get('enabled', False) %}
+server:
+ alert:
+ ProcstatRunningMemcached:
+ if: >-
+ procstat_running{process_name="memcached"} == 0
+ {% raw %}
+ labels:
+ severity: warning
+ service: memcached
+ annotations:
+ summary: 'Memcached service is down'
+ description: 'Memcached service is down on node {{ $labels.host }}'
+ {% endraw %}
+{%- endif %}
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 5acebbd..3e7214c 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -13,3 +13,5 @@
enabled: true
telegraf:
enabled: true
+ prometheus:
+ enabled: true