《转》OpenStack Ceilometer 安装配置和API说明
1.概述
Ceilometer是OpenStack中的一个子项目。它像一个漏斗一样。能把OpenStack内部发生的差点儿全部的事件都收集起来,然后为计费和监控以及其他服务提供数据支撑。Ceilometer的核心架构图例如以下:

图1 Ceilometer的核心架构图

图2 Ceilometer架构模型
2.安装
2.1安装服务
apt-get install ceilometer-api
ceilometer-collector ceilometer-agent-central python-ceilometerclient
2.2配置
/etc/ceilometer/ceilometer.conf
[DEFAULT]
#rabbitMQ
rabbit_host = client
rabbit_password = 12345
rabbit_hosts = client:5672
rabbit_userid = guest
[database]
connection = mysql://ceilometer:12345@client/ceilometer
[publisher_rpc]
metering_secret = ADMIN
[keystone_authtoken]
auth_host = client
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = ceilometer
admin_password = ceilometers
2.3在keystone中创建ceilometer用户和服务endpoint
keystone user-create –name=ceilometer
–pass=CEILOMETER_PASS –email=ceilometer@example.com
keystone user-role-add –user=ceilometer
–tenant=service –role=admin
keystone service-create –name=ceilometer
–type=metering –description=”Ceilometer Telemetry Service”
keystone endpoint-create
–service-id=the_service_id_above
–publicurl=http://controller:8777/
–internalurl=http://controller:8777/
–adminurl=http://controller:8777/
2.4创建ceilometer的mysql数据表
ceilometer-dbsync
2.5重新启动服务
service ceilometer-agent-central restart
service ceilometer-api restart
service ceilometer-collector restart
3.API
3.1 Resources资源
获取资源的信息。
GET http://HOST:8777/v2/resources
列出全部资源的定义。
GET http://HOST:8777/v2/resources/{resource_id}
获取指定的资源的具体信息。
3.2 Meters计量
获取计量信息。
GET http://HOST:8777/v2/meters
到眼下为止的计量数据列表。
GET http://HOST:8777/v2/meters/{meter_id}
获取指定ID的计量信息。
POST http://HOST:8777/v2/meters/{meter_id}
更新指定ID的计量信息列表。
GET http://HOST:8777/v2/meters/{meter_id}/statistics
计算在指定的时间范围内的样本的统计信息。
3.3 Alarms告警
列表,创建。获取具体信息。更新和删除报警。
GET http://HOST:8777/v2/alarms
依据指定查询,列出了警报。
POST http://HOST:8777/v2/alarms
创建一个报警。
GET http://HOST:8777/v2/alarms/{alarm_id}
获取指定ID的报警信息。
PUT http://HOST:8777/v2/alarms/{alarm_id}
更新指定ID的报警。
PUT http://HOST:8777/v2/alarms/{alarm_id}/state
设置一个指定ID的报警状态。
GET http://HOST:8777/v2/alarms/{alarm_id}/state
获取指定ID的报警状态。
GET http://HOST:8777/v2/alarms/{alarm_id}/history
组装指定ID的报警历史记录。
4.OpenStack服务的监控
4.1Compute (Nova)
全部计量来自实例。不宿主机.
|
名称 |
类型 |
单位 |
资源 |
Origin |
说明 |
|
instance |
Gauge |
instance |
inst ID |
both |
Duration of instance |
|
instance:<type> |
Gauge |
instance |
inst ID |
both |
Duration of instance <type> |
|
memory |
Gauge |
MB |
inst ID |
notification |
Volume of RAM in MB |
|
cpu |
Cumulative |
ns |
inst ID |
pollster |
CPU time used |
|
cpu_util |
Gauge |
% |
inst ID |
pollster |
Average CPU utilisation |
|
vcpus |
Gauge |
vcpu |
inst ID |
notification |
Number of VCPUs |
|
disk.read.requests |
Cumulative |
request |
inst ID |
pollster |
Number of read requests |
|
disk.write.requests |
Cumulative |
request |
inst ID |
pollster |
Number of write requests |
|
disk.read.bytes |
Cumulative |
B |
inst ID |
pollster |
Volume of read in B |
|
disk.write.bytes |
Cumulative |
B |
inst ID |
pollster |
Volume of write in B |
|
disk.root.size |
Gauge |
GB |
inst ID |
notification |
Size of root disk in GB |
|
disk.ephemeral.size |
Gauge |
GB |
inst ID |
notification |
Size of ephemeral disk in GB |
|
network.incoming.bytes |
Cumulative |
B |
iface ID |
pollster |
number of incoming bytes on the network |
|
network.outgoing.bytes |
Cumulative |
B |
iface ID |
pollster |
number of outgoing bytes on the network |
|
network.incoming.packets |
Cumulative |
packet |
iface ID |
pollster |
number of incoming packets for a VM |
|
network.outgoing.packets |
Cumulative |
packet |
iface ID |
pollster |
number of outgoing packets for a VM |
At present, most of the Nova meters will
only work with libvirt front-end hypervisors while test coverage was mostly
done based on KVM. Contributors are welcome to implement other virtualization
backends’ meters or complete the existing ones.
4.2 Network (Neutron)
|
名称 |
类型 |
单位 |
资源 |
Origin |
说明 |
|
network |
Gauge |
network |
netw ID |
notification |
Duration of network |
|
network.create |
Delta |
network |
netw ID |
notification |
Creation requests for this network |
|
network.update |
Delta |
network |
netw ID |
notification |
Update requests for this network |
|
subnet |
Gauge |
subnet |
subnt ID |
notification |
Duration of subnet |
|
subnet.create |
Delta |
subnet |
subnt ID |
notification |
Creation requests for this subnet |
|
subnet.update |
Delta |
subnet |
subnt ID |
notification |
Update requests for this subnet |
|
port |
Gauge |
port |
port ID |
notification |
Duration of port |
|
port.create |
Delta |
port |
port ID |
notification |
Creation requests for this port |
|
port.update |
Delta |
port |
port ID |
notification |
Update requests for this port |
|
router |
Gauge |
router |
rtr ID |
notification |
Duration of router |
|
router.create |
Delta |
router |
rtr ID |
notification |
Creation requests for this router |
|
router.update |
Delta |
router |
rtr ID |
notification |
Update requests for this router |
|
ip.floating |
Gauge |
ip |
ip ID |
both |
Duration of floating ip |
|
ip.floating.create |
Delta |
ip |
ip ID |
notification |
Creation requests for this floating ip |
|
ip.floating.update |
Delta |
ip |
ip ID |
notification |
Update requests for this floating ip |
4.3Image (Glance)
|
名称 |
类型 |
单位 |
资源 |
Origin |
说明 |
|
image |
Gauge |
image |
image ID |
both |
Image polling -> it (still) exists |
|
image.size |
Gauge |
B |
image ID |
both |
Uploaded image size |
|
image.update |
Delta |
image |
image ID |
notification |
Number of update on the image |
|
image.upload |
Delta |
image |
image ID |
notification |
Number of upload of the image |
|
image.delete |
Delta |
image |
image ID |
notification |
Number of delete on the image |
|
image.download |
Delta |
B |
image ID |
notification |
Image is downloaded |
|
image.serve |
Delta |
B |
image ID |
notification |
Image is served out |
4.4Volume (Cinder)
|
名称 |
类型 |
单位 |
资源 |
Origin |
说明 |
|
volume |
Gauge |
volume |
vol ID |
notification |
Duration of volume |
|
volume.size |
Gauge |
GB |
vol ID |
notification |
Size of volume |
4.5Object Storage (Swift)
|
名称 |
类型 |
单位 |
资源 |
Origin |
说明 |
| storage.objects | Gauge | object | store ID | pollster | Number of objects |
| storage.objects.size | Gauge | B | store ID | pollster | Total size of stored objects |
| storage.objects.containers | Gauge | container | store ID | pollster | Number of containers |
| storage.objects.incoming.bytes | Delta | B | store ID | notification | Number of incoming bytes |
| storage.objects.outgoing.bytes | Delta | B | store ID | notification | Number of outgoing bytes |
| storage.api.request | Delta | request | store ID | notification | Number of API requests against swift |
| storage.containers.objects | Gauge | object | str ID/cont | pollster | Number of objects in container |
| storage.containers.objects.size | Gauge | B | str ID/cont | pollster | Total size of stored objects in container |
4.6Energy (Kwapi)
|
名称 |
类型 |
单位 |
资源 |
Origin |
说明 |
|
energy |
Cumulative |
kWh |
probe ID |
pollster |
Amount of energy |
|
power |
Gauge |
W |
probe ID |
pollster |
Power consumption |
《转》OpenStack Ceilometer 安装配置和API说明的更多相关文章
- Sphinx中文分词安装配置及API调用
这几天项目中需要重新做一个关于商品的全文搜索功能,于是想到了用Sphinx,因为需要中文分词,所以选择了Sphinx for chinese,当然你也可以选择coreseek,建议这两个中选择一个,暂 ...
- Sphinx中文分词详细安装配置及API调用实战
这几天项目中需要重新做一个关于商品的全文搜索功能,于是想到了用Sphinx,因为需要中文分词,所以选择了Sphinx for chinese,当然你也可以选择coreseek,建议这两个中选择一个,暂 ...
- (转)Sphinx中文分词安装配置及API调用
这几天项目中需要重新做一个关于商品的全文搜索功能,于是想到了用Sphinx,因为需要中文分词,所以选择了Sphinx for chinese,当然你也可以选择coreseek,建议这两个中选择一个,暂 ...
- 《转》Ubuntu14.04 openstack juno配置之 ceilometer遥測模块安装配置
(一)在控制节点上 1.安装的遥測服务 apt-get install -y ceilometer-api ceilometer-collector ceilometer-agent-central ...
- OpenStack-Ocata版+CentOS7.6 云平台环境搭建 — 3.安装配置OpenStack认证服务(keystone)
节点配置信息说明: 控制节点:controller: IP:192.168.164.128 hostname&hosts:likeadmin 计算加点:Nova: IP:192.168.164 ...
- S1_搭建分布式OpenStack集群_03 Mysql、MQ、Memcached、ETCD安装配置
一.安装mysql(contorller)controller ~]# yum -y install mariadb mariadb-server python2-PyMySQL 配置my.cnf文件 ...
- CentOS 安装及配置Salt api
安装 # yum -y install salt-api 更改配置 vim /etc/salt/master 把默认的注释掉 我们这边默认配置文件目录是/srv/salt default_inclu ...
- OpenStack-Ocata版+CentOS7.6 云平台环境搭建 — 2.安装配置OpenStack基础服务
节点配置情况说明: 控制节点:controller: IP:192.168.164.128 hostname&hosts:likeadmin 计算加点:Nova: IP:192.168.164 ...
- C#实现多级子目录Zip压缩解压实例 NET4.6下的UTC时间转换 [译]ASP.NET Core Web API 中使用Oracle数据库和Dapper看这篇就够了 asp.Net Core免费开源分布式异常日志收集框架Exceptionless安装配置以及简单使用图文教程 asp.net core异步进行新增操作并且需要判断某些字段是否重复的三种解决方案 .NET Core开发日志
C#实现多级子目录Zip压缩解压实例 参考 https://blog.csdn.net/lki_suidongdong/article/details/20942977 重点: 实现多级子目录的压缩, ...
随机推荐
- openssh升级步骤
1下载openssh最新版本 2 configure ./configure --prefix= /ssh先配置一下 再在本地安装. make &makeinstall 3 按照/ssh包含内 ...
- fprintf输出到文件中,sprintf输出到字符串中. 如: fprintf(fp,"%s",name); fp为文件指针 sprintf(buff,"%s",name); buff为字符数组
fprintf输出到文件中,sprintf输出到字符串中. 如: fprintf(fp,"%s",name); fp为文件指针 sprintf(buff,"%s" ...
- mac os版本Intellij IDEA 搭建spring mvc的maven工程(新手教学)
由于近期换了新公司,又换mac pro作为新电脑,打算把用了很多年的eclipse换成IDEA(IDEA比eclipse的好处我就不多说了),由于mac os和IDEA刚开始用不久,所以专门用一篇博客 ...
- DedeCms当前位置导航去掉最后的分隔符>
DedeCms的当前位置导航调用标签{dede:field name=’position’ /},在栏目页里调用的当前位置导航,最后会出现分割符号“>”,如:主页 > DedeCms 模板 ...
- 邂逅Sass和Compass之Compass篇
本文主要讲解Compass的内容,众所周知Compass是Sass的工具库,如果对Sass不甚了解的同学可以移步 邂逅Sass和Compass之Sass篇 Sass本身只是一个“CSS预处理器”,Co ...
- Web前端开发最佳实践(1):前端开发概述
引言 我从07年开始进入博客园,从最开始阅读别人的文章到自己开始尝试表达一些自己对技术的看法.可以说,博客园是我参与技术讨论的一个主要的平台.在这其间,随着接触技术的广度和深度的增加,也写了一些得到了 ...
- web_reg_save_param_regexp函数的用法
关联从服务器返回的所有的内容: 本例通过一个使用HTTP/HTML协议发送.获取服务器数据的vuser脚本,分析LoadRunner如何进行HTTP关联. 下面这个例子包括两个事务:上传数据到服务器. ...
- Gitlab基本管理(二)
一. Gitlab分支 1. 切换到项目位置. 2. 创建一个项目的一新分支. mike@win10-001 MINGW64 ~/cookbook/cookbook (master) $ git br ...
- POJ 1976 A Mini Locomotive
$dp$. 要求选择$3$个区间,使得区间和最大.$dp[i][j]$表示前$i$个数中选择了$j$段获得的最大收益. #include <cstdio> #include <cma ...
- 洛谷P4151 [WC2011] 最大XOR和路径 [线性基,DFS]
题目传送门 最大XOR和路径 格式难调,题面就不放了. 分析: 一道需要深刻理解线性基的题目. 好久没打过线性基的题了,一开始看到这题还是有点蒙逼的,想了几种方法全被否定了.还是看了大佬的题解才会做的 ...