Ask Your Question

query OS::Aodh::GnocchiAggregationByResourcesAlarm wrong project_id

asked 2017-09-14 02:26:12 -0500

updated 2017-09-19 14:23:39 -0500

zaneb gravatar image

Hi there I'm facing problems trying to set up a heat autoscaling group which reacts on OS::Aodh::GnocchiAggregationByResourcesAlarm.

The resulting Alarm uses a query to find the right metrics to inspect. One part of it is the stack_id aka server_group which gets attached to the alarm by either str_replace or list_join intrinsic function. This is no problem. The problem actually is, that parts of the query are kind of hardwired, so the resulting json string is something like

{"and": [{"=": {"created_by_project_id": "*********"}}, {"=": {"server_group": "******"}}]}

with the project_id being the id of the heat stack building project. Since at least ocata the resources of type instance are polled by a ceilometer-compute-agent running on every compute. This leads to the resources getting created by the service project_id. So I end up with alarms that query the wrong created_by_project_id ID and I have to change the ID ( or delete this part of the query ) on database level. e.g. one example I am using. query:

   template: '{"=": {"server_group": "stack_id"}}'
          stack_id: {get_param: "OS::stack_id"}

Help is highly appreciated. Cheers mates ;-)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-19 14:35:37 -0500

zaneb gravatar image

I think the answer is that you want to use project_id instead of created_by_project_id:

edit flag offensive delete link more


Hi, thx for your answer. Unfortunately this part of the query is generated by the module itself. So you can't just change it. I'm afraid I have to say, the module seems a bit buggy.

Frank_SU_HH gravatar imageFrank_SU_HH ( 2017-09-19 15:43:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-09-14 02:26:12 -0500

Seen: 17 times

Last updated: 2 days ago