From b36c91b684862e05aac0ce6f6cb18616450ec2bf Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Mon, 21 Feb 2022 18:06:13 +0100 Subject: [PATCH] cloudkitty: fix URL used for Prometheus collector The Prometheus HTTP API is reachable under /api/v1. Without this fix, CloudKitty receives 404 errors from Prometheus. Change-Id: Ie872da5ccddbcb8028b8b57022e2427372ed474e --- ansible/roles/cloudkitty/defaults/main.yml | 2 +- .../notes/cloudkitty-prometheus-url-ee14bc486e810631.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/cloudkitty-prometheus-url-ee14bc486e810631.yaml diff --git a/ansible/roles/cloudkitty/defaults/main.yml b/ansible/roles/cloudkitty/defaults/main.yml index cde0f5be3e..7e59ee7f0d 100644 --- a/ansible/roles/cloudkitty/defaults/main.yml +++ b/ansible/roles/cloudkitty/defaults/main.yml @@ -166,7 +166,7 @@ cloudkitty_collector_backend: "gnocchi" cloudkitty_monasca_interface: "internal" # Set prometheus collector URL. -cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }}" +cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }}/api/v1" # Path of the CA certificate to trust for HTTPS connections. # cloudkitty_prometheus_cafile: "{{ openstack_cacert }}" diff --git a/releasenotes/notes/cloudkitty-prometheus-url-ee14bc486e810631.yaml b/releasenotes/notes/cloudkitty-prometheus-url-ee14bc486e810631.yaml new file mode 100644 index 0000000000..1c2c249399 --- /dev/null +++ b/releasenotes/notes/cloudkitty-prometheus-url-ee14bc486e810631.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes configuration of the Prometheus HTTP API URL when using the + Prometheus collector in CloudKitty. + `LP#1961615 `__