Handle "disabled" in nova_compute alarms

Change-Id: I2eaeb109284e8f4ca26c3a8350a8ed6b751075ab
This commit is contained in:
Éric Lemoine 2016-12-08 15:38:12 +00:00
parent 32b5251e1d
commit fea94eacea
1 changed files with 4 additions and 11 deletions

View File

@ -162,6 +162,8 @@ remote_collector:
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 @@ remote_collector:
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 @@ remote_collector:
- metric: openstack_nova_services_percent
field:
service: compute
state: up
relational_operator: '<='
state: down
relational_operator: '>'
threshold: 50
window: 60
periods: 0