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

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

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

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

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

    # zypper install openstack-ceilometer-agent-compute
    
  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
      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
      

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. エージェントを起動し、システム起動時に自動的に起動するよう設定します。

    # systemctl enable openstack-ceilometer-agent-compute.service
    # systemctl start openstack-ceilometer-agent-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.

Search