启用镜像服务计量

启用镜像服务计量

Telemtry使用notifications方式收集镜像服务计量信息。在控制节点上执行这些步骤。

配置镜像服务使用Telemetry

  • 编辑 /etc/glance/glance-api.conf/etc/glance/glance-registry.conf 文件,同时完成如下动作:

    • ``[DEFAULT] `` 和 ``[oslo_messaging_rabbit] `` 部分,配置 ``notifications ``和”RabbitMQ” 消息队列访问:

      [DEFAULT]
      ...
      notification_driver = messagingv2
      rpc_backend = rabbit
      
      [oslo_messaging_rabbit]
      ...
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
      

      用你在 “RabbitMQ” 中为 “openstack” 用户选择的密码替换 “RABBIT_PASS”。

完成安装

  • 重启镜像服务:

    # systemctl restart openstack-glance-api.service openstack-glance-registry.service
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.