首页 > 代码库 > ceilometer入门

ceilometer入门

使用devstack来安装ceilometer的开发环境

[stack@yao-devstack root]$ cd /opt/
# clone devstack仓库
[stack@yao-devstack root]$ git clone http://git.openstack.org/openstack-dev/devstack 
# 创建stack用户
[stack@yao-devstack root]$ bash /opt/devstack/tools/create-stack-user.sh
# 修改devstack目录的属主
[stack@yao-devstack root]$ chown -R stack. /opt/devstack/

# 创建local.conf配置文件
[stack@yao-devstack root]$ vim /opt/devstack/local.conf
[[local|localrc]]
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git
enable_plugin ceilometer http://git.openstack.org/openstack/ceilometer
CEILOMETER_BACKEND=mongodb

ADMIN_PASSWORD=yao
DATABASE_PASSWORD=yao
RABBIT_PASSWORD=yao
SERVICE_PASSWORD=$ADMIN_PASSWORD
RECLONE=no

# 执行stack安装程序
[stack@yao-devstack root]$ bash /opt/devstack/stack.sh


技术栈:

pecan:  rest api基本框架  https://segmentfault.com/a/1190000003810294

tenacity:  重连库  https://github.com/jd/tenacity

futurist:  定时任务  https://docs.openstack.org/developer/futurist/examples.html

Cotyledon:  进程管理  http://cotyledon.readthedocs.io/en/latest/api.html


ceilometer基本命令:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/6/html/Administration_Guide/sect-Using_the_Telemetry_Service.html


现在ceilometer可以采集到虚拟机的cpu、内存、disk信息。(针对libvirt)



本文出自 “the-way-to-cloud” 博客,请务必保留此出处http://iceyao.blog.51cto.com/9426658/1912666

ceilometer入门