Telemetry は、通知とエージェントの両方を使用して、Compute の計測項目を収集します。各コンピュートノードで以下の作業をすべて行います。
パッケージをインストールします。
# 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
RABBIT_PASS を RabbitMQ の openstack アカウント用に選択したパスワードで置き換えます。
[DEFAULT] セクションと [keystone_authtoken] セクションに、Identity サービスへのアクセス方法を設定します。
[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
CEILOMETER_PASS を Telemetry 用サービスデータベース用に選択したパスワードで置き換えます。
[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_PASS を Identity サービスで ceilometer ユーザー用に選択したパスワードで置き換えます。
(オプション) トラブルシューティングしやすくするために、冗長ロギングを [DEFAULT] セクションで有効にします。
[DEFAULT]
...
verbose = True
/etc/nova/nova.conf ファイルを編集し、[DEFAULT] セクションに通知の設定を行います。
[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
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.