In Compute Node
# apt-get install ceilometer-agent-compute
# nano /etc/nova/nova.conf
# [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
# service nova-compute restart
# nano /etc/ceilometer/ceilometer.conf
[publisher]
...
metering_secret = openstack
[DEFAULT]
rabbit_host = controller
rabbit_password = openstack
...
log_dir = /var/log/ceilometer
[keystone_authtoken]
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = ceilometer
admin_password = openstack
* Comment out the auth_host, auth_port, and auth_protocol
[service_credentials]
os_auth_url = http://controller:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = openstack
os_endpoint_type = internalURL
# service ceilometer-agent-compute restart
In Controller Node
# nano /etc/glance/glance-api.conf
notification_driver = messaging
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = openstack
# service glance-registry restart
# service glance-api restart
# nano /etc/cinder/cinder.conf
control_exchange = cinder
notification_driver = cinder.openstack.common.notifier.rpc_notifier
# service cinder-api restart
# service cinder-scheduler restart
# service cinder-volume restart
* Run cinder-volume restart on Block Node
# apt-get install python-ceilometerclient
# keystone role-create --name ResellerAdmin
# keystone user-role-add --tenant service --user ceilometer --role
# nano /etc/swift/proxy-server.conf
[filter:ceilometer]
use = egg:ceilometer#swift
[pipeline:main]
pipeline = healthcheck cache authtoken keystoneauth ceilometer proxy-server
operator_roles = Member,admin,swiftoperator,_member_,ResellerAdmin
# usermod -a -G ceilometer swift
# service swift-proxy restart
# source admin-openrc.sh
# ceilometer meter-list
# glance image-download "cirros" > chaal.img
# ceilometer meter-list
# ceilometer statistics -m image.download -p 60
0 comments:
Post a Comment