Remove the usage of down and disabled together
This patch removes the trigger with state '== down || == disabled'
because it is not working as expected. Instead we ensure that it
triggers only if only one agent is up and at least another one isn't up.
Change-Id: I4e64e4302bd4780401fb1c90b1dc8eeb3d3f9e05
diff --git a/neutron/meta/heka.yml b/neutron/meta/heka.yml
index 6778821..422ff50 100644
--- a/neutron/meta/heka.yml
+++ b/neutron/meta/heka.yml
@@ -124,12 +124,12 @@
window: 60
periods: 0
function: last
- - metric: openstack_neutron_agents
+ - metric: openstack_neutron_agents_percent
field:
service: {{ agent }}
- state: '== down || == disabled'
- relational_operator: '>'
- threshold: 0
+ state: up
+ relational_operator: '<'
+ threshold: 100
window: 60
periods: 0
function: last