zoukankan      html  css  js  c++  java
  • Openstack-Ceilometer-获取主机内存 的使用

    1. 物理server配置

    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 |

    +--------------+-----------------------+-------+-------------+------+---------------------+

  • 相关阅读:
    DNS放大攻击
    Java并发编程(四):并发容器(转)
    关注商业价值
    样式小记
    应用程序优化
    查看当前的连接和锁
    重命名你的数据库
    转:对XML插入操作
    对数据的分页再一次思考
    不浪费自己的时间,同时也不浪费别人的时间
  • 原文地址:https://www.cnblogs.com/tlnshuju/p/6958448.html
Copyright © 2011-2022 走看看