参考 http://blog.csdn.net/qq_21398167/article/details/47019751
关闭selinux和防火墙
#setenforce 0 #vi /etc/sysconfig/selinux 修改为:SELINUX=disabled
添加一个已存在的meter
增加一个内存meter,/etc/ceilometer/pipline.yaml
- name: hardware_memory_source interval: 60 meters: - "hardware.memory.*" resources: - snmp://172.16.1.212 sinks: - meter_sink
#systemctl restart openstack-ceilometer-central.service
#ceilometer meter-list | grep hardware #ceilometer sample-list -m hardware.memory.total
示例
+--------------+-----------------------+-------+-------------+------+---------------------+
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+--------------+-----------------------+-------+-------------+------+---------------------+
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T03:41:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T03:31:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T03:21:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T03:11:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T03:01:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T02:51:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T02:41:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T02:31:10 |
| 172.16.1.212 | hardware.memory.total | gauge | 198293684.0 | B | 2014-12-05T02:21:10 |
+--------------+-----------------------+-------+-------------+------+---------------------+
版权声明:本文为博主原创文章,未经博主允许不得转载。
Openstack-Ceilometer-获取主机内存 的使用
原文:http://blog.csdn.net/qq_21398167/article/details/47665973