使用devstack來安裝ceilometer的開發環境
html
[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
技術棧:html5
pecan: rest api基本框架 http://www.javashuo.com/article/p-mixiosne-mk.htmlgit
tenacity: 重連庫 https://github.com/jd/tenacity github
futurist: 定時任務 https://docs.openstack.org/developer/futurist/examples.htmlmongodb
Cotyledon: 進程管理 http://cotyledon.readthedocs.io/en/latest/api.html vim
ceilometer基本命令:
segmentfault
如今ceilometer能夠採集到虛擬機的cpu、內存、disk信息。(針對libvirt)bash