create alarm for cpu_util of a particular instance

asked 2015-07-26 14:38:51 -0500

SauravT gravatar image

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:

type: OS::Ceilometer::Alarm
  meter_name: cpu_util -q resource_id=XXX -p 600
  statistic: avg
  period: 600
  evaluation_periods: 1
  threshold: 50
    - {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 ?

edit retag flag offensive close merge delete