Skip to content

Commit 3fdc75b

Browse files
committed
Further changes from review
1 parent 8101668 commit 3fdc75b

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed
Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,19 @@ Use Prometheus as the collector and fetcher backends, 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
26-
TLS enabled, you will also need to allow insecure connections for Prometheus
27-
and Elasticsearch. Set the following in ``kolla/globals.yml``:
26+
TLS enabled, you will also need to set the cafile for Prometheus and
27+
Elasticsearch. Set the following in ``kolla/globals.yml``, and make sure that
28+
``openstack_cacert`` is appropriately set as a Kayobe variable too. It defaults
29+
to ``openstack_cacert: "{{ lookup('env', 'OS_CACERT') }}"``, but you may prefer
30+
to set the path explicitly.
2831

2932
.. code-block:: console
3033
3134
cloudkitty_collector_backend: prometheus
3235
cloudkitty_fetcher_backend: prometheus
3336
cloudkitty_storage_backend: elasticsearch
34-
cloudkitty_elasticsearch_insecure_connections: true
35-
cloudkitty_prometheus_insecure_connections: true
37+
cloudkitty_prometheus_cafile: "{{ openstack_cacert }}"
38+
cloudkitty_elasticsearch_cafile: "{{ openstack_cacert }}"
3639
3740
The default collection period is one hour, which is likely too long for your
3841
system. CloudKitty will charge for the entire period if any usage is seen
@@ -56,25 +59,25 @@ will track for flavors and volumes, set in
5659
5760
metrics:
5861
openstack_nova_server_status:
59-
alt_name: instance
60-
groupby:
62+
alt_name: instance
63+
groupby:
6164
- uuid
6265
- user_id
6366
- tenant_id
64-
metadata:
67+
metadata:
6568
- flavor_id
6669
- name
67-
mutate: MAP
68-
mutate_map:
70+
mutate: MAP
71+
mutate_map:
6972
0.0: 1.0 # ACTIVE
7073
11.0: 1.0 # SHUTOFF
7174
12.0: 1.0 # SUSPENDED
7275
16.0: 1.0 # PAUSED
73-
unit: instance
76+
unit: instance
7477
openstack_cinder_limits_volume_used_gb:
75-
alt_name: storage
76-
unit: GiB
77-
groupby:
78+
alt_name: storage
79+
unit: GiB
80+
groupby:
7881
- tenant_id
7982
8083
TODO: Should we explain how to handle OpenStack exporter metrics relabelling,

doc/source/configuration/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ the various features provided.
2020
magnum-capi
2121
ci-cd
2222
security-hardening
23+
cloudkitty

doc/source/operations/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ This guide is for operators of the StackHPC Kayobe configuration project.
77
.. toctree::
88
:maxdepth: 1
99

10-
cloudkitty
1110
hotfix-playbook
1211
nova-compute-ironic
1312
octavia

0 commit comments

Comments
 (0)