Configure CloudKitty with Prometheus basic auth

Closes-Bug: #2044226
Change-Id: I5e17152584b758c9ca4f1cc14520337f979584b7
This commit is contained in:
Pierre Riteau 2023-11-22 07:08:19 +00:00
parent 151f510a6c
commit 4131eb458d
2 changed files with 9 additions and 0 deletions

View File

@ -69,6 +69,8 @@ region_name = {{ openstack_region_name }}
{% if cloudkitty_collector_backend == "prometheus" %}
[collector_prometheus]
prometheus_url = {{ cloudkitty_prometheus_url }}
prometheus_user = admin
prometheus_password = {{ prometheus_password }}
{% if cloudkitty_prometheus_cafile is defined %}
cafile = {{ cloudkitty_prometheus_cafile }}
@ -93,6 +95,8 @@ region_name = {{ openstack_region_name }}
metric = openstack_identity_project_info
scope_attribute = id
prometheus_url = {{ cloudkitty_prometheus_url }}
prometheus_user = admin
prometheus_password = {{ prometheus_password }}
{% if cloudkitty_prometheus_cafile is defined %}
cafile = {{ cloudkitty_prometheus_cafile }}

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes CloudKitty failing to query Prometheus now that basic authentication
is required.