Skip to content

Commit 9e96827

Browse files
priteaumarkgoddard
authored andcommitted
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 (cherry picked from commit b36c91b)
1 parent ae46e80 commit 9e96827

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ansible/roles/cloudkitty/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ cloudkitty_collector_backend: "gnocchi"
174174
cloudkitty_monasca_interface: "internal"
175175

176176
# Set prometheus collector URL.
177-
cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }}"
177+
cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }}/api/v1"
178178

179179
# Path of the CA certificate to trust for HTTPS connections.
180180
# cloudkitty_prometheus_cafile: "{{ openstack_cacert }}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes configuration of the Prometheus HTTP API URL when using the
5+
Prometheus collector in CloudKitty.
6+
`LP#1961615 <https://bugs.launchpad.net/kolla-ansible/+bug/1961615>`__

0 commit comments

Comments
 (0)