Skip to content
Snippets Groups Projects
Commit 2b5cef68 authored by Pierre Riteau's avatar Pierre Riteau
Browse files

Support configuring prometheus fetcher for CloudKitty

Change-Id: I7d79a18599f54583ff4f38a554459fe02ada9ae7
parent 3058b5bc
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,19 @@ auth_section = keystone_authtoken ...@@ -89,6 +89,19 @@ auth_section = keystone_authtoken
region_name = {{ openstack_region_name }} region_name = {{ openstack_region_name }}
{% endif %} {% endif %}
{% if cloudkitty_fetcher_backend == "prometheus" %}
[fetcher_prometheus]
metric = openstack_identity_project_info
scope_attribute = id
prometheus_url = {{ cloudkitty_prometheus_url }}
{% if cloudkitty_prometheus_cafile is defined %}
cafile = {{ cloudkitty_prometheus_cafile }}
{% endif %}
insecure = {{ cloudkitty_prometheus_insecure_connections }}
{% endif %}
[api] [api]
host_ip = {{ api_interface_address }} host_ip = {{ api_interface_address }}
port = {{ cloudkitty_api_port }} port = {{ cloudkitty_api_port }}
......
...@@ -59,7 +59,11 @@ CloudKitty natively supports multiple fetcher backends. ...@@ -59,7 +59,11 @@ CloudKitty natively supports multiple fetcher backends.
By default Kolla Ansible uses the ``keystone`` backend. This can be changed By default Kolla Ansible uses the ``keystone`` backend. This can be changed
using the ``cloudkitty_fetcher_backend`` option. using the ``cloudkitty_fetcher_backend`` option.
You will need to provide extra configuration for non-default fetchers in Kolla Ansible also supports the ``prometheus`` backend type, which is
configured to discover scopes from the ``id`` label of the
``openstack_identity_project_info`` metric of OpenStack exporter.
You will need to provide extra configuration for unsupported fetchers in
``/etc/kolla/config/cloudkitty.conf``. ``/etc/kolla/config/cloudkitty.conf``.
Cloudkitty Storage Backend Cloudkitty Storage Backend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment