启用块存储计量

启用块存储计量

Telemetry使用通知收集块存储服务计量。在控制节点和块存储节点上执行这些步骤。

注解

您的环境必须包含块存储服务。

配置卷使用Telemetry

编辑 /etc/cinder/cinder.conf,同时完成如下动作:

  • [oslo_messaging_notifications] 部分,配置提醒:

    [oslo_messaging_notifications]
    ...
    driver = messagingv2
    

完成安装

  1. 重启控制节点上的块设备存储服务:

    # systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service
    
  2. 重启存储节点上的块设备存储服务:

    # systemctl restart openstack-cinder-volume.service
    
  1. 在块存储节点上使用``cinder-volume-usage-audit``命令按需检索度量值。 更多信息,请查看`管理员指南 <http://docs.openstack.org/admin-guide/ telemetry-data-collection.html#block-storage-audit-script-setup-to-get- notifications>`__。

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.