2016-06-15 18:10:08 +02:00
|
|
|
2. Edit the ``/etc/ceilometer/ceilometer.conf`` file and complete
|
|
|
|
the following actions:
|
|
|
|
|
2017-01-27 16:29:51 +00:00
|
|
|
* Configure Gnocchi connection:
|
2016-06-15 18:10:08 +02:00
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
2017-01-27 16:29:51 +00:00
|
|
|
[dispatcher_gnocchi]
|
|
|
|
# filter out Gnocchi-related activity meters (Swift driver)
|
|
|
|
filter_service_activity = False
|
|
|
|
# default metric storage archival policy
|
|
|
|
archive_policy = low
|
2016-06-15 18:10:08 +02:00
|
|
|
|
2017-01-27 16:29:51 +00:00
|
|
|
* In the ``[DEFAULT]`` section,
|
|
|
|
configure ``RabbitMQ`` message queue access:
|
2016-06-15 18:10:08 +02:00
|
|
|
|
2017-01-27 16:29:51 +00:00
|
|
|
.. code-block:: ini
|
2016-06-15 18:10:08 +02:00
|
|
|
|
2017-01-27 16:29:51 +00:00
|
|
|
[DEFAULT]
|
|
|
|
...
|
|
|
|
transport_url = rabbit://openstack:RABBIT_PASS@controller
|
2016-06-15 18:10:08 +02:00
|
|
|
|
2017-01-27 16:29:51 +00:00
|
|
|
Replace ``RABBIT_PASS`` with the password you chose for the
|
|
|
|
``openstack`` account in ``RabbitMQ``.
|
2016-06-15 18:10:08 +02:00
|
|
|
|
|
|
|
* In the ``[service_credentials]`` section, configure service credentials:
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
2017-02-14 11:00:33 +08:00
|
|
|
[service_credentials]
|
|
|
|
...
|
|
|
|
auth_type = password
|
|
|
|
auth_url = http://controller:5000/v3
|
2017-02-15 16:37:49 +08:00
|
|
|
project_domain_id = default
|
|
|
|
user_domain_id = default
|
2017-02-14 11:00:33 +08:00
|
|
|
project_name = service
|
|
|
|
username = ceilometer
|
|
|
|
password = CEILOMETER_PASS
|
|
|
|
interface = internalURL
|
|
|
|
region_name = RegionOne
|
2016-06-15 18:10:08 +02:00
|
|
|
|
|
|
|
Replace ``CEILOMETER_PASS`` with the password you chose for
|
|
|
|
the ``ceilometer`` user in the Identity service.
|
2017-01-30 16:17:46 +00:00
|
|
|
|
2017-02-27 16:21:39 +00:00
|
|
|
3. Edit the ``/etc/gnocchi/gnocchi.conf`` file and add Keystone options:
|
2017-01-30 16:17:46 +00:00
|
|
|
|
2017-06-13 19:43:11 +00:00
|
|
|
* In the ``[api]`` section, configure gnocchi to use keystone:
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[api]
|
|
|
|
auth_mode = keystone
|
|
|
|
|
2017-04-06 21:48:22 +00:00
|
|
|
* In the ``[keystone_authtoken]`` section, configure keystone
|
|
|
|
authentication:
|
2017-02-27 16:21:39 +00:00
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
2017-04-06 21:48:22 +00:00
|
|
|
[keystone_authtoken]
|
2017-02-27 16:21:39 +00:00
|
|
|
...
|
|
|
|
auth_type = password
|
|
|
|
auth_url = http://controller:5000/v3
|
2017-04-06 21:48:22 +00:00
|
|
|
project_domain_name = Default
|
|
|
|
user_domain_name = Default
|
2017-02-27 16:21:39 +00:00
|
|
|
project_name = service
|
|
|
|
username = gnocchi
|
|
|
|
password = GNOCCHI_PASS
|
|
|
|
interface = internalURL
|
|
|
|
region_name = RegionOne
|
|
|
|
|
|
|
|
Replace ``GNOCCHI_PASS`` with the password you chose for
|
|
|
|
the ``gnocchi`` user in the Identity service.
|
|
|
|
|
|
|
|
4. Create Ceilometer resources in Gnocchi. Gnocchi should be running by this
|
|
|
|
stage:
|
|
|
|
|
|
|
|
.. code-block:: console
|
2017-01-30 16:17:46 +00:00
|
|
|
|
2017-02-27 16:21:39 +00:00
|
|
|
# ceilometer-upgrade --skip-metering-database
|