Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for Aodh and Gnocchi alarms #353

Open
ioggstream opened this issue May 17, 2017 · 4 comments
Open

support for Aodh and Gnocchi alarms #353

ioggstream opened this issue May 17, 2017 · 4 comments

Comments

@ioggstream
Copy link
Contributor

reproduce

  1. deploy on rhosp10 with autoscaling: true
  2. issue openstack alarm list

I expect

Alarm status to be in [ "ok", "alarm" ]

instead

Alarm status is "insufficient data"

my resolution

  • replace metadata on ServerGroup with the following.
          metadata: {"metering.server_group": {get_param: "OS::stack_id"}}
  • create Gnocchi + Aodh alarms like this
  cpu_alarm_high:
    type: OS::Aodh::GnocchiAggregationByResourcesAlarm
    properties:
      aggregation_method: mean
      metric: cpu_util
      comparison_operator: gt
      threshold: 50
      granularity: 600
      evaluation_periods: 1
      resource_type: instance
      enabled: {get_param: autoscaling}
      alarm_actions:
        - {get_attr: [scale_up_policy, alarm_url]}
      query:
        str_replace:
          template: '{"=": {"server_group": "stack_id"}}'
          params:
            stack_id: {get_param: "OS::stack_id"}

Feedback welcome!

Peace,
R:

@lborensky
Copy link

Hi,
For me, it's not good. No autoscalabity and I have always Alarm status is "insufficient data". Trace of aodh-evaluator.log. Always 0 statistics returned.

2017-07-04 19:06:18.921 16763 DEBUG aodh.evaluator [-] evaluating alarm d00d63bf-5a17-4eb0-b291-470138a9fb85 _evaluate_alarm /opt/stack/aodh/aodh/evaluator/init.py:257
2017-07-04 19:06:18.921 16763 DEBUG aodh.evaluator.threshold [-] query stats from 2017-07-04 19:04:18.921680 to 2017-07-04 19:06:18.921680 _bound_duration /opt/stack/aodh/aodh/evaluator/threshold.py:90
2017-07-04 19:06:18.949 16763 DEBUG aodh.evaluator.gnocchi [-] sanitize stats [] _sanitize /opt/stack/aodh/aodh/evaluator/gnocchi.py:48
2017-07-04 19:06:18.949 16763 DEBUG aodh.evaluator.gnocchi [-] pruned statistics to 0 _sanitize /opt/stack/aodh/aodh/evaluator/gnocchi.py:52

@ioggstream
Copy link
Contributor Author

There's an issue on RHOSP10 alarms.

Essentially they don't work out out of the box. You have to fix openstack before:

  • set default collection interval to 300 seconds
  • verify that every metric has 5 minute granularity

See

@ioggstream
Copy link
Contributor Author

ioggstream commented Jul 28, 2017

@markllama ok, if it's the same as the proposed one you can close this ticket ;)
@lborensky see related tickets for an official release

Related tickets:

@ioggstream
Copy link
Contributor Author

@lborensky fyi https://review.openstack.org/#/c/482947/ there will be an official release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants