Gnocchi's aggregation-by-metric alarm is not evaluated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aodh |
Fix Released
|
High
|
Mehdi Abaakouk |
Bug Description
Gnocchi's alarm of 'gnocchi_
ceilometer alarm-show 553506ca-
+------
| Property | Value |
+------
| aggregation_method | mean |
| alarm_actions | [u'log://'] |
| alarm_id | 553506ca-
| comparison_operator | ge |
| description | Gnocchi Aggregation By Metrics Alarm |
| enabled | True |
| evaluation_periods | 3 |
| granularity | 60 |
| insufficient_
| metrics | [u'e1e687d2-
| | 47f4-abc4-
| name | GnocchiAggregat
| ok_actions | [u'log://'] |
| project_id | |
| repeat_actions | False |
| severity | low |
| state | alarm |
| threshold | 3.0 |
| type | gnocchi_
| user_id | |
+------
I've found that evaluator requests data from gnocchi with next body:
{'url': 'http://
e47319f74b4ba03
gregation': u'mean'}} _statistics /usr/lib/
And in gnocchi.log this body is than transformed to :
2015-11-06 07:27:03.506 26164 INFO werkzeug [-] 192.0.2.21 - - [06/Nov/2015 07:27:03] "GET /v1/aggregation
1-06T07%
Running the query manually returned empty list:
curl -XGET -H 'X-Auth-Token: 3b775a05d2ab437
After removing 'quoted' symbols "[", "]" from query I got result:
curl --silent -XGET -H 'X-Auth-Token: 3b775a05d2ab437
[
[
300.0,
21.5
],
[
60.0,
20.0
],
[
60.0,
21.0
],
[
60.0,
22.0
],
[
60.0,
23.0
]
]
Changing https:/
req['params'
managed to get correct result by evaluator:
2015-11-06 07:45:20.826 6123 DEBUG aodh.evaluator.
2015-11-06 07:45:20.827 6123 DEBUG aodh.evaluator.
2015-11-06 07:45:20.828 6123 DEBUG aodh.evaluator.
Packages:
=======
openstack-
openstack-
openstack-
openstack-
python-
openstack-
openstack-
openstack-
=======
openstack-
openstack-
openstack-
openstack-
python-
openstack-
openstack-
openstack-
Regards,
Yurii
Changed in aodh: | |
importance: | Undecided → High |
tags: | added: liberty-backport-potential |
Changed in aodh: | |
status: | Fix Committed → Fix Released |
Related fix proposed to branch: master /review. openstack. org/242386
Review: https:/