OpenStack监控组件---Ceilometer alarm属性分析

OpenStack监控组件---Ceilometer alarm属性代码分析

CeilometerOpenStack中的一个子项目,它像一个漏斗一样,能把OpenStack内部发生 的几乎所有的事件都收集起来,然后为计费和监控以及其它服务提供数据支撑。

Ceilometer监控通过在计算节点部署Compute服务,轮询其计算节点上的instance,获取各自的CPU、网络、磁盘等监控信息,发送到RabbitMQCollector服务负责接收信息进行持久化存储。Ceilometer项目创建时最初的目的是实现一个能为计费系统采集数据的框架。在G版的开发中,社区已经更新了他们的目标,新目标是希望Ceilometer成为OpenStack里数据采集(监控数据、计费数据)的唯一基础设施,采集到的数据提供给监控、计费、面板等项目使用。

Alarm模块的目录结构:

 

ceilometerclient的目录结构:

 

Alarm的属性:

 

参数

类型

解释

name

str

nameproject唯一的

description

str

描述

enabled

bool

alarm的一个开关,可以停止/启动该alarm,默认是True

ok_actions

list

alarm状态变为ok状态时,采取的动作,默认是[]

alarm_actions

list

alarm状态变为alarm状态时,采取的动作,默认是[]

insufficient_data_actions

list

alarm状态变为insufficient data状态时,采取的动作,默认是[]

repeat_actions

bool

alarm被触发时,是否重复执行对应的动作,默认是False

type

str

alarm类型,目前有thresholdcombination两种,必填

threshold_rule

AlarmThresholdRule

alarm类型为threshold时,制定的threshold规则

combination_rule

AlarmCombinationRule

alarm类型为combination时,制定的combination规则

time_constraints

list(AlarmTimeConstraint)

约束该alarm在哪些时间段执行,默认是[]

state

str

alarm的状态,默认是insufficient data

user_id

str

user id,默认是context user id

project_id

str

project id, 默认是context project id

timestamp

datetime

alarm的定义最后一次被更新的时间

state_timestamp

datetime

alarm的状态最后一次更改的时间

说明:

name: nameproject唯一的,在创建alarm的时候会检查

enabled: 这个功能比较人性化,可以暂停该

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值