Ask Your Question
0

query OS::Aodh::GnocchiAggregationByResourcesAlarm wrong project_id

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

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

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:

str_replace:
   template: '{"=": {"server_group": "stack_id"}}'
       params:
          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
0

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

zaneb gravatar image

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

https://ask.openstack.org/en/question...

edit flag offensive delete link more

Comments

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 -0600 )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

Stats

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

Seen: 59 times

Last updated: Sep 19