Compute サービスの計測の有効化

Compute サービスの計測の有効化

Telemetry は、通知とエージェントの両方を使用して、Compute の計測項目を収集します。各コンピュートノードで以下の作業をすべて行います。

コンポーネントのインストールと設定

  1. パッケージをインストールします。

    # yum install openstack-ceilometer-compute python-ceilometerclient python-pecan
    
  1. /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_PASSRabbitMQopenstack アカウント用に選択したパスワードで置き換えます。

    • [DEFAULT] セクションと [keystone_authtoken] セクションに、Identity サービスへのアクセス方法を設定します。

      [DEFAULT]
      ...
      auth_strategy = keystone
      
      [keystone_authtoken]
      ...
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = ceilometer
      password = CEILOMETER_PASS
      

      CEILOMETER_PASS を Telemetry 用サービスデータベース用に選択したパスワードで置き換えます。

    • [service_credentials] セクションにサービスのクレデンシャルを設定します。

      [service_credentials]
      ...
      auth_type = password
      auth_url = http://controller:5000/v3
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = ceilometer
      password = CEILOMETER_PASS
      interface = internalURL
      region_name = RegionOne
      

      CEILOMETER_PASS を Identity サービスで ceilometer ユーザー用に選択したパスワードで置き換えます。

Telemetry を使用するための Compute の設定

  • /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
    

インストールの最終作業

  1. Start the agent and configure it to start when the system boots:

    # systemctl enable openstack-ceilometer-compute.service
    # systemctl start openstack-ceilometer-compute.service
    
  1. Compute Service を再起動します。

    # systemctl restart openstack-nova-compute.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.