Add nagios_host dimension for alarm_cluster
And fixes the alerting property.
Change-Id: If3b082142cf23c792b5bd5c7f34bf1d7c2deb4c2
diff --git a/neutron/meta/heka.yml b/neutron/meta/heka.yml
index 9bb4a84..1a9b388 100644
--- a/neutron/meta/heka.yml
+++ b/neutron/meta/heka.yml
@@ -90,7 +90,6 @@
alarm:
{%- if pillar.neutron.server is defined %}
neutron_api_check:
- alerting: true
triggers:
- neutron_api_check_failed
dimension:
@@ -100,6 +99,7 @@
alarm_cluster:
neutron_logs_compute:
policy: highest_severity
+ alerting: enabled
group_by: hostname
match:
service: neutron-logs-compute
@@ -107,8 +107,10 @@
- neutron_logs_compute
dimension:
service: neutron-compute
+ nagios_host: 01-service-clusters
neutron_logs:
policy: highest_severity
+ alerting: enabled
group_by: hostname
match:
service: neutron-logs
@@ -116,8 +118,10 @@
- neutron_logs
dimension:
service: neutron-control
+ nagios_host: 01-service-clusters
neutron_api_endpoint:
policy: availability_of_members
+ alerting: enabled
group_by: hostname
match:
service: neutron-api-endpoint
@@ -125,16 +129,20 @@
- neutron_api_endpoint
dimension:
service: neutron-control
+ nagios_host: 01-service-clusters
neutron_api_check:
policy: highest_severity
+ alerting: enabled
match:
service: neutron-api-check
members:
- neutron_api_check
dimension:
service: neutron-control
+ nagios_host: 01-service-clusters
neutron_control:
policy: highest_severity
+ alerting: enabled_with_notification
match:
service: neutron-control
members:
@@ -143,11 +151,14 @@
- neutron_api_check
dimension:
cluster_name: neutron-control
+ nagios_host: 00-top-clusters
neutron_compute:
policy: highest_severity
+ alerting: enabled_with_notification
match:
service: neutron-compute
members:
- neutron_logs_compute
dimension:
cluster_name: neutron-compute
+ nagios_host: 00-top-clusters