Atom feed of this document
  

 告警更新

一旦警告的状态稳定下来了,我们就可决定低于70%的设置,此情况下的阀值(或大多数其它警告属性)可以按如下来更新:

$ ceilometer alarm-update --threshold 75 ALARM_ID

变更将会在下一个评估周期生效,而评估周期默认是每分钟进行一次。

多数但警告属性可通过此方法来修改,但是还是有更为便利的捷径用来获取和设置警告状态:

$ ceilometer alarm-state-get ALARM_ID
$ ceilometer alarm-state-set --state ok -a ALARM_ID

随着时间的推移,警告的状态也许会经常的变更,尤其是如果阈值被选择为接近的统计信息的趋势值。你可通过审计API来跟随警告生命周期的整个历史:

$ ceilometer alarm-history ALARM_ID
+------------------+-----------+---------------------------------------+
| Type             | Timestamp | Detail                                |
+------------------+-----------+---------------------------------------+
| creation         | time0     | name: cpu_hi                          |
|                  |           | description: instance running hot     |
|                  |           | type: threshold                       |
|                  |           | rule: cpu_util > 70.0 during 3 x 600s |
| state transition | time1     | state: ok                             |
| rule change      | time2     | rule: cpu_util > 75.0 during 3 x 600s |
+------------------+-----------+---------------------------------------+
Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...