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. JmsTemplate 发送方式

    ---恢复内容开始--- 背景: 原来我准备是setDefaultDestinationName 设置队列的名称 发现 系统运行后  创建 的并不是队列 ,而是Topic  , 自己看下源码,发现在创 ...

  2. 高并发服务器建议调小 TCP 协议的 time_wait 超时时间

    说明:操作系统默认 240 秒后,才会关闭处于 time_wait 状态的连接,在高并发访问下,服 务器端会因为处于 time_wait 的连接数太多,可能无法建立新的连接,所以需要在服务器上 调小此 ...

  3. <2013 10 18> Linux随机数生成器可能确实存在安全弱点

    生成随机数是密码学中的一项基本任务,是生成加密密钥和加密算法或加密协议所必不可少的.理想中的随机数是完美的,但实践中的随机数都是用伪随机数生成器(PRNG)生成,随机数的质量对安全性至关重要.安全专家 ...

  4. JavaScript通过preventDefault()使input[type=text]禁止输入但保留光标

    一.说明 取消事件的默认动作. 该方法将通知 Web 浏览器不要执行与事件关联的默认动作(如果存在这样的动作).例如,如果 type 属性是 "submit",在事件传播的任意阶段 ...

  5. ArcGIS Server Q&A

    持续更新.. 一. AGS Server10发布mobile data access 出现错误 问题描述: "ArcGIS Server: Configuration <name> ...

  6. 浅析僵尸进程&孤儿进程

    0x01 前言 此文出自:https://www.cnblogs.com/Anker/p/3271773.html 博文主要用unix/linux举例,但道理没问题的同样有助于在Python中理解僵尸 ...

  7. Python线程包装器

    import threading import subprocess import time def need_thread(func, *args, **kwargs): def fun(): pr ...

  8. Learning Notes for HTML/CSS/JS

    @1:内部样式表 & 外部样式表 内部样式表的定义,放在<style></style>中,<style>标签放在<head>中 <html ...

  9. width

    position:absolute 其widht:%是想对于最近的已经定位的父元素,如果没有就想对于body widht 是指的内容区的with,设置除了width其他的元素都会使元素变的比width ...

  10. ZOJ 3958 Cooking Competition 【水】

    题目链接 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3958 AC代码 #include <cstdio> ...