Install the Compute agent for Telemetry

Telemetry provides an API service that provides a collector and a range of disparate agents. This procedure details how to install the agent that runs on the compute node.

  1. Install the Telemetry service on the Compute node:

    # apt-get install ceilometer-agent-compute
  2. Edit the /etc/nova/nova.conf file and add the following lines to the [DEFAULT] section:

    [DEFAULT]
    ...
    instance_usage_audit = True
    instance_usage_audit_period = hour
    notify_on_state_change = vm_and_task_state
    notification_driver = nova.openstack.common.notifier.rpc_notifier
    notification_driver = ceilometer.compute.nova_notifier
  3. You must set the secret key that you defined previously. The Telemetry service nodes share this key as a shared secret:

    Edit the /etc/ceilometer/ceilometer.conf file and change these lines in the [DEFAULT] section. Replace ADMIN_TOKEN with the admin token that you created previously:

    ...
    [publisher_rpc]
    # Secret value for signing metering messages (string value)
    metering_secret = ADMIN_TOKEN
    ...
  4. Configure the RabbitMQ access:

    Edit the /etc/ceilometer/ceilometer.conf file and update the [DEFAULT] section:

    [DEFAULT]
    rabbit_host = controller
    rabbit_password = RABBIT_PASS
  5. Add the Identity service credentials:

    Edit the /etc/ceilometer/ceilometer.conf file and change the [keystone_authtoken] section:

    [keystone_authtoken]
    auth_host = controller
    auth_port = 35357
    auth_protocol = http
    admin_tenant_name = service
    admin_user = ceilometer
    admin_password = CEILOMETER_PASS

    Also set the [service_credentials] section:

    [service_credentials]
    os_auth_url = http://controller:5000/v2.0
    os_username = ceilometer
    os_tenant_name = service
    os_password = CEILOMETER_PASS
  6. Configure the log directory.

    Edit the /etc/ceilometer/ceilometer.conf file and update the [DEFAULT] section:

    [DEFAULT]
    log_dir = /var/log/ceilometer
  7. Restart the service with its new settings:

    # service ceilometer-agent-compute restart
Log a bug against this page


loading table of contents...