Alarm's transition from 'insufficient data' state is calculated based on last value in evaluation periods
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aodh |
Fix Released
|
Medium
|
Mehdi Abaakouk |
Bug Description
Alarm transitions from 'insufficient data' state to new one based on the value of last sample in the configured evaluation periods.
E.g:
ceilometer alarm-show 14f014a3-
+------
| Property | Value |
+------
| alarm_actions | [u'log://'] |
| alarm_id | 14f014a3-
| comparison_operator | ge |
| description | Yurii Test Coordination |
| enabled | True |
| evaluation_periods | 3 |
| exclude_outliers | False |
| insufficient_
| meter_name | MyAlarmMeter1 |
| name | RHOSP-7331 |
| ok_actions | [u'log://'] |
| period | 60 |
| project_id | 63c2e37b0dae4ed
| query | resource_id == MyFakeResource1 |
| repeat_actions | False |
| severity | moderate |
| state | insufficient data |
| statistic | avg |
| threshold | 3.0 |
| type | threshold |
| user_id | 21c76f98274e436
+------
2016-02-01 11:14:00.895 5185 DEBUG aodh.coordination [req-c939bbc0-
2016-02-01 11:14:00.923 5185 DEBUG aodh.coordination [req-c939bbc0-
2016-02-01 11:14:00.924 5185 INFO aodh.evaluator [req-c939bbc0-
2016-02-01 11:14:00.924 5185 DEBUG aodh.evaluator [req-c939bbc0-
2016-02-01 11:14:00.925 5185 DEBUG aodh.evaluator.
2016-02-01 11:14:00.925 5185 DEBUG aodh.evaluator.
{'field': 'timestamp', 'value': '2016-02-
threshold.py:115
2016-02-01 11:14:01.275 5185 DEBUG aodh.evaluator.
: 1.0, u'max': 1.0, u'duration_end': u'2016-
d': 60, u'groupby': None, u'period_end': u'2016-
uration': 0.0, u'period_start': u'2016-
2016-02-01 11:14:01.275 5185 DEBUG aodh.evaluator.
2016-02-01 11:14:01.276 5185 DEBUG aodh.evaluator.
2016-02-01 11:14:01.276 5185 DEBUG aodh.evaluator.
/threshold.py:216
2016-02-01 11:14:01.277 5185 DEBUG aodh.evaluator.
/threshold.py:216
2016-02-01 11:14:01.278 5185 INFO aodh.evaluator [req-c939bbc0-
s outside threshold, most recent: 3.0
Packages:
aodh*-1.
---
Regards,
Yurii
Changed in aodh: | |
assignee: | nobody → Mehdi Abaakouk (sileht) |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in aodh: | |
status: | Fix Committed → Confirmed |
status: | Confirmed → Fix Committed |
Changed in aodh: | |
milestone: | none → mitaka-rc1 |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/274615 /git.openstack. org/cgit/ openstack/ aodh/commit/ ?id=30a3e52773b a6f5f699e66f415 bc00e93e967c96
Committed: https:/
Submitter: Jenkins
Branch: master
commit 30a3e52773ba6f5 f699e66f415bc00 e93e967c96
Author: Mehdi Abaakouk <email address hidden>
Date: Mon Feb 1 12:42:18 2016 +0100
Fix alarm reason
Alarm reason reports "transitioning to alarm because Transition to alarm due to 3
samples outside threshold, most recent: 3.0" when only one samples is
outside the threshold.
This change fixes that.
Related-bug: #1540395
Change-Id: I70be9a4e832655 efe83e414bd220a 9aaa4869247