Add the Object Storage agent for the Telemetry service
To retrieve object store statistics, the Telemetry service
needs access to Object Storage with the
ResellerAdmin role. Give this role to
your os_username user for the
os_tenant_name tenant:
$ keystone role-create --name=ResellerAdmin
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| id | 462fa46c13fd4798a95a3bfbe27b5e54 |
| name | ResellerAdmin |
+----------+----------------------------------+
$ keystone user-role-add --tenant service --user ceilometer \
--role 462fa46c13fd4798a95a3bfbe27b5e54
You must also add the Telemetry middleware to Object
Storage to handle incoming and outgoing traffic. Add
these lines to the
/etc/swift/proxy-server.conf
file:
[filter:ceilometer]
use = egg:ceilometer#swift
Add ceilometer to the
pipeline parameter of that same file:
[pipeline:main]
pipeline = healthcheck cache authtoken keystoneauth ceilometer proxy-server
Restart the service with its new settings:
# service swift-proxy-server restart
# service openstack-swift-proxy-server restart