Ubuntu 16.04
Sponsored Link

OpenStack Mitaka : Configure Ceilometer#32016/06/08

 
Configure OpenStack Metering Service (Ceilometer).
This example shows to configure Metering Services on the existing environment like follows.
                                |
+------------------+            |            +------------------------+
| [ Control Node ] |            |            |    [ Network Node ]    |
|     Keystone     |10.0.0.30   |   10.0.0.50|    DHCP,L3,L2 Agent    |
|      Glance      |------------+------------|     Metadata Agent     |
|     Nova API     |eth0        |        eth0|   Ceilometer Services  |
|  Neutron Server  |            |            |                        |
+------------------+            |            +------------------------+
                            eth0|10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |    Nova Compute    |
                      |      L2 Agent      |
                      | Ceilometer-Compute |
                      +--------------------+

 
Configure Ceilometer Compute on Compute Node on this section.
[1] Install Ceilometer Compute and so on.
root@node01:~#
apt-get -y install ceilometer-agent-compute python-ceilometer python-ceilometerclient
[2] Configure Ceilometer Compute.
root@node01:~#
mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org

root@node01:~#
vi /etc/ceilometer/ceilometer.conf
# create new

[DEFAULT]
rpc_backend = rabbit
auth_strategy = keystone
# RabbitMQ connection info

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.30
rabbit_port = 5672
rabbit_userid = openstack
rabbit_password = password
# Keystone auth info

[keystone_authtoken]
auth_uri = http://10.0.0.30:5000
auth_url = http://10.0.0.30:35357
memcached_servers = 10.0.0.30:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = ceilometer
password = servicepassword
# Ceilometer auth info

[service_credentials]
os_auth_url = http://10.0.0.30:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = servicepassword
os_endpoint_type = internalURL
os_region_name = RegionOne
root@node01:~#
chown ceilometer. /etc/ceilometer/ceilometer.conf

root@node01:~#
chmod 644 /etc/ceilometer/ceilometer.conf

root@node01:~#
systemctl restart ceilometer-agent-compute

[3] Configure Nova Compute.
root@node01:~#
vi /etc/nova/nova.conf
# add follows in the "[DEFAULT]" section

instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = messagingv2
root@node01:~#
systemctl restart nova-compute

Matched Content