Ceilometr:10, ceilometer-alarm common command line __ceilometer

Source: Internet
Author: User
Tags time interval

Ceilometer-alarm Common command line

Reference:

http://blog.csdn.net/violet_echo_0908/article/details/52243199

http://blog.csdn.net/hackerain/article/details/38172941



1 querying a resource for measurement

Ceilometerstatistics-q resource_id=<instance_id>-M Cpu_util

Ceilometerstatistics-q Resource_id=640a2be3-632b-4c2b-98f3-75b7f5877d4d-mcpu_util


Ceilometeralarm-list



2 Create a alarm

Ceilometeralarm-threshold-create--namecache--description ' instancerunning hot '--meter-namecache--threshold60.0-- Comparison-operatorgt--statisticavg--period600--evaluation-periods3--alarm-action ' log://'--queryresource_id= instance_id

Alarm-threshold-create Create a new alarm based on computed

Statistics.

ceilometeralarm-threshold-create--name CPU--description ' instance runninghot '--meter-name cpu_util,--threshold 4 --comparison-operator gt--statistic avg--period--evaluation-periods 3--alarm-action ' log://'--query resource_id= 640A2BE3-632B-4C2B-98F3-75B7F5877D4D


Explain:

Alarm-threshold-create:

Name: Alert names

Meter-name: Monitoring Xiangmin visit the Cross

Threshold: Threshold value

Comparison-operator: comparison operation symbol, GT, lt etc.

Statistic: Statistical methods, including averages,

Period: Time interval

Evaluation_periods: Number of data in the time period.

Alarm-action: Alarm action,.

QUERYRESOURCE_ID: Querying resource IDs

Repeat_actions: If the alarm action has been triggered before, do you want to repeat the trigger?



3 Get Alarm Status:

Measure alarm status Get alarm ID

ceilometeralarm-state-getalarm_id

Ceilometeralarm-state-get876ef1a6-b1ba-4b61-8ebb-303bc77ee8a4



4 View individual alert details

Measurement alarm Display Alarm ID

Ceilometeralarm-showAlarm-id

Ceilometeralarm-show 876ef1a6-b1ba-4b61-8ebb-303bc77ee8a4


5 View a single Alarm the State

measure alarm status Get alarm item Alarm ID

ceilometeralarm-state-get-a Alarm-id

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.