首页 > 其他 > 详细

Openstack-Ceilometer-获取主机内存 的使用

时间:2015-08-14 19:02:25      阅读:482      评论:0      收藏:0      [点我收藏+]

1. 物理服务器配置

1.1安装

参考 http://blog.csdn.net/qq_21398167/article/details/47019751

1.2      配置


关闭selinux和防火墙

技术分享
#setenforce 0

#vi /etc/sysconfig/selinux

 修改为:SELINUX=disabled

技术分享

2. 在Ceilometer中测试

添加一个已存在的meter

2.1在pipline.yaml新增meter

增加一个内存meter,/etc/ceilometer/pipline.yaml

技术分享
- name: hardware_memory_source
interval: 60
meters:
- "hardware.memory.*"
resources:
- snmp://172.16.1.212
sinks:
- meter_sink
技术分享

2.2重启ceilometer

#systemctl restart openstack-ceilometer-central.service

2.3 获取meter

#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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!