Ask Your Question

SauravT's profile - activity

2015-11-03 08:34:22 -0600 received badge  Famous Question (source)
2015-09-09 10:13:13 -0600 received badge  Popular Question (source)
2015-09-09 10:13:13 -0600 received badge  Notable Question (source)
2015-07-27 12:13:45 -0600 asked a question create alarm for cpu_util of a particular instance

By default Ceilometer alarm meter:cpu_util checks cpu_utilization of all instances in a tenant. I want to create an alarm that is triggered based on the cpu_util of a particular instance (resource_id=XXX). I tried to create template with following alarm:

MyCpu_alarm_high:
type: OS::Ceilometer::Alarm
properties:
  meter_name: cpu_util -q resource_id=XXX -p 600
  statistic: avg
  period: 600
  evaluation_periods: 1
  threshold: 50
  alarm_actions:
    - {get_attr: [myScaleOut_policy, alarm_url]}
  comparison_operator: ge
  repeat_actions: True

Here the stack is created successfully but the alarm is not triggered. Is the line meter_name: cpu_util -q resource_id=XXX -p 600 correct ? Any guess ?