AODH是从Ceilometer分离出来的一个子项目,开始于OpenStack Liberty,用来提供alarm机制。

除了之前Ceilometer有的基于sample的警报机制,AODH还添加了基于事件的警报机制,使得警报可以实时。

SETUP

To configure devstack to use Aodh

Add the following to your local.conf or localrc file:

# Enable Aodh alarm service

enable_plugin aodh git://git.openstack.org/openstack/aodh

enable_service aodh-evaluator aodh-notifier aodh-api

disable_service Ceilometer-alarm-notifier Ceilometer-alarm-evaluator

To configure listening on the alarm topic

Check all event-alarms, filter events in the “alarm.all” topic, and configure the same to listen for alarm events. In addition, add the following line, post the original notifier, to your /etc/Ceilometer/event_pipeline.yaml:

- notifier://?topic=alarm.all

- notifier://

Or add the following in the devstack local.conf or localrc:

CEILOMETER_EVENT_ALARM=True

This config is honored by devstack only when Ceilometer is configured as a plugin in the devstack local.conf

enable_plugin Ceilometer git://git.openstack.org/openstack/Ceilometer

To install AODH-supported Ceilometer client

First, you must ensure you are using a Python-Ceilometer client that is at least version 1.5.0. To check the version, do the following:

$ pip show Python-Ceilometerclient

---

Metadata-Version: 2.0

Name: Python-Ceilometerclient

Version: 1.5.0

Summary: OpenStack Telemetry API Client Library

To update it:

$ pip uninstall Python-Ceilometerclient

$ pip install Python-Ceilometerclient

ALARM EVENT DEFINITION

To generate an alarm event when an image is updated assume the image resource id is 9a8fec25-1ba6-4170-aa44-5d72f17c07f6 and we are interested in updates to the same.

$ Ceilometer -d alarm-event-create --name event_alarm1 --alarm-action 'log://' --event-type image.update  -q 'traits.resource_id=string::9a8fec25-1ba6-4170-aa44-5d72f17c07f6'

Then, use following to trigger an “image.update” event:

nova image-meta cirros-0.3.4-x86_64-uec-ramdisk set progress=104

Watch the devstack screen window: aodh-notifier to capture the firing of the event alarm.

For more information, please see the following

1.     Blueprint: https://blueprints.launchpad.net/Ceilometer/+spec/event-alarm-evaluator

2.     Spec: http://specs.openstack.org/openstack/Ceilometer-specs/specs/liberty/event-alarm-evaluator.html

3.     Docs: http://docs.openstack.org/developer/aodh/index.html

4.     Demo: https://drive.google.com/a/intel.com/file/d/0BxzNz3_8jMMIa21NOUVGaXoyem8/view

5.     Open issues: https://review.openstack.org/#/q/status:open+project:openstack/aodh,n,z

6.     AODH name: http://www.behindthename.com/name/aodh

AODH: ALARM EVENTS IN OPENSTACK的更多相关文章

  1. setup notifier actions in aodh alarm

    Aodh alarm NOTIFIER ==> alarm_actions URL: http://<host>/<action> NOTIFIER will resol ...

  2. OpenStack Q版本新功能以及各核心组件功能对比

    OpenStack Q版本已经发布了一段时间了.今天, 小编来总结一下OpenStack Q版本核心组件的各项主要新功能, 再来汇总一下最近2年来OpenStack N.O.P.Q各版本核心组件的主要 ...

  3. 安装aodh

    在控制节点上执行 #!/bin/bash MYSQL_ROOT_PASSWD='m4r!adbOP' GNOCCHI_PASSWD='gnocchi1234!' CEILOMETER_PASSWD=' ...

  4. OPC协议解析-OPC客户端与服务器通讯解析

    1      OPC服务器 OPC服务器, 是指按照OPC基金组织规定的OPC规范群开发的软件驱动.OPC服务器作为中间媒介负责从数据源读取数据再跟另外一端的客户端通信.在 OPC客户端/服务器 的结 ...

  5. 如何做好Puppet Modules管理

    如何做好Puppet Modules管理 不同于其他的Openstack项目,puppet modules是一个数量庞大的存在.以我们当前在使用中的puppet modules为例,就已经多达96个( ...

  6. Analysis of requirement specification of parking management system

    Analysis of requirement specification of parking management system PURPOSE OF THE SYSTEM The parking ...

  7. aodh M版本新特性 - queue between alarm evaluator and alarm notifier

    之前alarm evaluator service and alarm notifier services之间的通信采用RPC的方式,消耗较大,增加work queue的方式可以获得更好的性能, + ...

  8. 探索 OpenStack 之(16):计量模块 Ceilometer 介绍及优化

    0. 背景 0.1 为什么要有 Ceilometer? 通常云,特别是公有云在计费方面有三个层次: 计量 (Metering): 收集资源的使用数据,其数据信息主要包括:使用对象(what), 使用者 ...

  9. openstack Icehouse发布

    OpenStack 2014.1 (Icehouse) Release Notes General Upgrade Notes Windows packagers should use pbr 0.8 ...

随机推荐

  1. 新手之使用git

    本篇博客针对不会Git的小童鞋,大神们可以绕过,错误之处谢谢指正: 关于GitHub的强大此处不在说明,知道GitHub也有一段时间了,但是一直苦于不会使用. 本篇文章介绍的是如何将工程代码托管到上面 ...

  2. PAT 1071. 小赌怡情(15) JAVA

    1071. 小赌怡情(15) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 常言道“小赌怡情”.这是一个很简单的 ...

  3. Python数据分析与挖掘所需的Pandas常用知识

    Python数据分析与挖掘所需的Pandas常用知识 前言Pandas基于两种数据类型:series与dataframe.一个series是一个一维的数据类型,其中每一个元素都有一个标签.series ...

  4. CoreThink主题开发(八)使用H-ui开发博客主题之用户登录之前及登录之后

    感谢H-ui.感谢CoreThink! 效果图: 登录之后 登录窗体 想做登录之后的下拉菜单的,实在做不出来了,就一般显示了... 整个面包屑导航这里,先遍历模块,并且是允许前台显示的模块,之后就是判 ...

  5. python学习之路-第一天-接触python

    我的入门就决定用<简明Python教程> <简明Python教程> 1. python的优势 简单:专注于解决问题而不是关注语言本身 易学:容易上手 开源.免费 可移植性非常强 ...

  6. Hadoop学习基础之三:MapReduce

    现在是讨论这个问题的不错的时机,因为最近媒体上到处充斥着新的革命所谓“云计算”的信息.这种模式需要利用大量的(低端)处理器并行工作来解决计算问题.实际上,这建议利用大量的低端处理器来构建数据中心,而不 ...

  7. XSS Attacks - Exploiting XSS Filter

    XSS Attacks - Exploiting XSS Filter mramydnei · 2015/12/21 10:11 from:http://l0.cm/xxn/ 0x00 前言 这又是一 ...

  8. 17南宁区域赛 I - Rake It In 【DFS】

    题目链接 https://nanti.jisuanke.com/t/19975 题意 Alice 和 Bob 玩游戏 在一个4x4 的方格上 每个人 每次选择2x2的区域 将里面的四个值求和加到最后的 ...

  9. iOS 设置 延迟执行 与 取消延迟执行 方法 以及对 run loop 初步认识

    之前开发过程中经常会有需求会使用 NSObject中的"performSelector:withObject:afterDelay:"做方法延迟执行的处理, 但是 还没有什么地方需 ...

  10. Qt浅谈之二十六图片滑动效果

    一.简介 博客中发现有作者写的仿360的代码,觉得其中图片滑动的效果很有意思,特提取其中的代码.并加上类似mac的画面移动的动画效果. 二.详解 1.代码一:界面滑动(QWidget) (1)slid ...