Remove the usage of down and disabled together
This patch removes the trigger with state '== down || == disabled'
because it is not working. We replaced it by a check that validates the
fact that alarm is triggered only if one service is up and at least
another service is down or disabled by using the percentage of services
up.
Change-Id: I463b1de2434544bdb4e5b4f3fec8ebc8642f20b3
diff --git a/cinder/meta/heka.yml b/cinder/meta/heka.yml
index bc5cfbf..7186c50 100644
--- a/cinder/meta/heka.yml
+++ b/cinder/meta/heka.yml
@@ -129,12 +129,12 @@
window: 60
periods: 0
function: last
- - metric: openstack_cinder_services
+ - metric: openstack_cinder_services_percent
field:
service: scheduler
- state: '== down || == disabled'
- relational_operator: '>'
- threshold: 0
+ state: up
+ relational_operator: '<'
+ threshold: 100
window: 60
periods: 0
function: last