1. Physical Server Configuration 1.1 installation
Reference http://blog.csdn.net/qq_21398167/article/details/47019751
1.2 Configuration
Turn off SELinux and firewalls
# Setenforce 0 # Vi/etc/sysconfig/selinux modified to: SELINUX=disabled
2. Testing in Ceilometer
Add a meter that already exists
2.1 New meter in Pipline.yaml
Add a Memory Meter,/etc/ceilometer/pipline.yaml
-meters:"hardware.memory.*"resources:-snmp:// 172.16.1.212Sinks:-Meter_sink
2.2 Restart Ceilometer
# systemctl Restart Openstack-ceilometer-central.service
2.3 Get Meter
# ceilometer meter-list | grep hardware # ceilometer sample-list-m hardware.memory.total
Example
+--------------+-----------------------+-------+-------------+------+---------------------+
| 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 |
+--------------+-----------------------+-------+-------------+------+---------------------+
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Openstack-ceilometer-getting the use of host memory