Telemetry 通过使用notifications和代理相结合收集计算服务的度量值。在每个计算节点上执行这些步骤。
安装软件包:
# yum install openstack-ceilometer-compute python-ceilometerclient python-pecan
编辑 /etc/ceilometer/ceilometer.conf,同时完成如下动作:
在 “[DEFAULT]” 和 “[oslo_messaging_rabbit]”部分,配置 “RabbitMQ” 消息队列访问:
[DEFAULT]
...
rpc_backend = rabbit
[oslo_messaging_rabbit]
...
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
用你在 “RabbitMQ” 中为 “openstack” 用户选择的密码替换 “RABBIT_PASS”。
在 “[DEFAULT]” 和 “[keystone_authtoken]” 部分,配置认证服务访问:
[DEFAULT]
...
auth_strategy = keystone
[keystone_authtoken]
...
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = ceilometer
password = CEILOMETER_PASS
用你为 Telemetry 服务数据库选择的密码替换 CEILOMETER_PASS。
在 “[service_credentials]” 部分,配置服务证书:
[service_credentials]
...
os_auth_url = http://controller:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = CEILOMETER_PASS
os_endpoint_type = internalURL
os_region_name = RegionOne
用你在认证服务中为 “ceilometer” 选择的密码替换 “CEILOMETER_PASS”。
(可选的)为帮助排错,在 “[DEFAULT]”部分启用详细日志。
[DEFAULT]
...
verbose = True
编辑 /etc/nova/nova.conf 文件,并在 [DEFAULT] 部分配置notifications:
[DEFAULT]
...
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = messagingv2
启动代理并配置它随系统一起启动:
# systemctl enable openstack-ceilometer-compute.service
# systemctl start openstack-ceilometer-compute.service
重启计算服务:
# systemctl restart openstack-nova-compute.service
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.