Ask Your Question
0

create ceilometer alarm for one specific instanace

asked 2013-10-29 15:26:02 -0500

cloud gravatar image

updated 2014-01-22 15:12:35 -0500

Evgeny gravatar image

Hello I have 5 instance in my system. Can I create an alarm for just one specific instance?? For example if I have to create an alarm I will be using

usage: ceilometer alarm-create --name <NAME> [--project-id <PROJECT_ID>]
                               [--user-id <USER_ID>]
                               [--description <DESCRIPTION>] [--state <STATE>]
                               [--enabled {True|False}]
                               [--alarm-action <Webhook URL>]
                               [--ok-action <Webhook URL>]
                               [--insufficient-data-action <Webhook URL>]
                               [--repeat-actions {True|False}]
                               [--period <PERIOD>]
                               [--evaluation-periods <COUNT>] --meter-name
                               <METRIC> [--statistic <STATISTIC>]
                               [--comparison-operator <OPERATOR>] --threshold
                               <THRESHOLD>
                               [--matching-metadata <Matching Metadata>]

But I am not sure which of these attribute will specify the instance id??? Can anybody help me?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-03 08:51:46 -0500

bena gravatar image

This page is very useful: http://openstack.redhat.com/CeilometerQuickStart (http://openstack.redhat.com/Ceilomete...)

An example of creating a threshold-oriented alarm, based on a upper bound on the CPU utilization for a particular instance: ceilometer alarm-threshold-create --name cpu_high --description 'instance running hot' \ --meter-name cpu_util --threshold 70.0 --comparison-operator gt --statistic avg \ --period 600 --evaluation-periods 3 \ --alarm-action 'log://' \ --query resource_id=INSTANCE_ID

edit flag offensive delete link more

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: 2013-10-29 15:26:02 -0500

Seen: 869 times

Last updated: Apr 03 '14