Handle "disabled" in nova_compute alarms

Change-Id: I2eaeb109284e8f4ca26c3a8350a8ed6b751075ab
diff --git a/nova/meta/heka.yml b/nova/meta/heka.yml
index 9cef124..9230945 100644
--- a/nova/meta/heka.yml
+++ b/nova/meta/heka.yml
@@ -162,6 +162,8 @@
         periods: 0
         function: last
     {%- endfor %}
+    # we treat "up" and "disabled" states in the same way, considering
+    # that "disabled" should not be treated as an error
     nova_compute_some_down:
       description: 'Some Nova computes are down'
       severity: warning
@@ -176,15 +178,6 @@
         window: 60
         periods: 0
         function: last
-      - metric: openstack_nova_services_percent
-        field:
-          service: compute
-          state: up
-        relational_operator: '>='
-        threshold: 50
-        window: 60
-        periods: 0
-        function: last
     nova_compute_majority_down:
       description: 'Majority of Nova computes are down'
       severity: critical
@@ -192,8 +185,8 @@
       - metric: openstack_nova_services_percent
         field:
           service: compute
-          state: up
-        relational_operator: '<='
+          state: down
+        relational_operator: '>'
         threshold: 50
         window: 60
         periods: 0