Add alarm for InfluxDB
diff --git a/influxdb/meta/heka.yml b/influxdb/meta/heka.yml
new file mode 100644
index 0000000..b6cc61a
--- /dev/null
+++ b/influxdb/meta/heka.yml
@@ -0,0 +1,45 @@
+{%- from "influxdb/map.jinja" import server with context %}
+{%- if server.get('enabled', False) %}
+metric_collector:
+ trigger:
+ influxdb_check:
+ description: 'InfluxDB cannot be checked'
+ severity: down
+ rules:
+ - metric: influxdb_check
+ relational_operator: '=='
+ threshold: 0
+ window: 60
+ periods: 0
+ function: last
+ alarm:
+ influxdb_check:
+ alerting: enabled
+ triggers:
+ - influxdb_check
+ dimension:
+ service: influxdb-check
+aggregator:
+ alarm_cluster:
+ influxdb_check:
+ policy: availability_of_members
+ alerting: enabled
+ match:
+ service: influxdb-check
+ group_by: hostname
+ members:
+ - influxdb_check
+ dimension:
+ service: influxdb
+ nagios_host: 01-service-clusters
+ influxdb:
+ policy: highest_severity
+ alerting: enabled_with_notification
+ match:
+ service: influxdb
+ members:
+ - influxdb_check
+ dimension:
+ cluster_name: influxdb
+ nagios_host: 00-top-clusters
+{%- endif %}
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 1328b79..75ca6cd 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -4,7 +4,7 @@
collectd:
enabled: true
heka:
- enabled: false
+ enabled: true
sensu:
enabled: true
sphinx: