Skip to content

Commit 1a4d6c4

Browse files
committed
Merge branch 'document-cloudkitty' of https://github.com/stackhpc/stackhpc-kayobe-config into document-cloudkitty
2 parents 3fdc75b + 552caf8 commit 1a4d6c4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/source/configuration/cloudkitty.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ CloudKitty
55
Configuring in kayobe-config
66
============================
77

8-
By default, CloudKitty uses Gnocci and Ceilometer as the collector and fetcher
8+
By default, CloudKitty uses Gnocchi and Ceilometer as the collector and fetcher
99
backends. Unless the system has a specific reason not to, we recommend instead
1010
using Prometheus as the backend for both. The following instructions explain
11-
how to do this
11+
how to do this.
1212

1313
Enable CloudKitty and disable InfluxDB, as we are using OpenSearch as the
1414
storage backend. Set the following in ``kolla.yml``:
1515

16-
.. code-block:: console
16+
.. code-block:: yaml
1717
1818
kolla_enable_cloudkitty: true
1919
# Explicitly disable influxdb as we are using OpenSearch as the CloudKitty backend
2020
kolla_enable_influxdb: false
2121
22-
Use Prometheus as the collector and fetcher backends, and Elasticsearch as the
22+
Set Prometheus as the backend for both the collector and fetcher, and Elasticsearch as the
2323
storage backend. Note that this is patched in our fork of CloudKitty to also
2424
work with OpenSearch. Proper support is still pending in Kolla-Ansible `here
2525
<https://review.opendev.org/c/openstack/kolla-ansible/+/898555>`__. If you have
@@ -29,7 +29,7 @@ Elasticsearch. Set the following in ``kolla/globals.yml``, and make sure that
2929
to ``openstack_cacert: "{{ lookup('env', 'OS_CACERT') }}"``, but you may prefer
3030
to set the path explicitly.
3131

32-
.. code-block:: console
32+
.. code-block:: yaml
3333
3434
cloudkitty_collector_backend: prometheus
3535
cloudkitty_fetcher_backend: prometheus
@@ -43,19 +43,19 @@ within this timeframe. This means that even just one minute will be counted as
4343
an hour's usage. It is recommended to change this to a lower number, such as
4444
ten minutes. When using Prometheus as the collector, you need to change the
4545
scope_key to match the metrics provided by the Prometheus OpenStack Exporter.
46-
Set the following in ``cloudkitty.conf``:
46+
Set the following in ``kolla/config/cloudkitty.conf``:
4747

4848
.. code-block:: console
4949
5050
[collect]
5151
scope_key = tenant_id
5252
period = 600
5353
54-
You will need to configure which metrics CloudKitty should track. This example
55-
will track for flavors and volumes, set in
56-
``kolla/config/cloudkitty/metrics.yml``:
54+
You will need to configure which metrics CloudKitty should track. The following
55+
example, set in ``kolla/config/cloudkitty/metrics.yml``, will track for VM flavors and
56+
the total utilised volume.
5757

58-
.. code-block:: console
58+
.. code-block:: yaml
5959
6060
metrics:
6161
openstack_nova_server_status:
@@ -88,7 +88,7 @@ Post-configuration with openstack-config
8888

8989
This is an example `openstack-config
9090
<https://github.com/stackhpc/openstack-config>`__ setup to create mappings for
91-
the metrics configured above. Note that the costs are scaled for the ten-minute
91+
the metrics configured above. Note that the costs are scaled for the ten minute
9292
collection period, e.g. a flavor with 1 VCPU will cost 1 unit per hour.
9393

9494
.. code-block:: yaml

0 commit comments

Comments
 (0)