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

Support configuring the CloudKitty fetcher

Change-Id: I6d9ee98912120b9ece60ee22c7b0ad71dab8ed30
parent 3d65a160
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,13 @@ cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | p
# This means, HTTPS connections without validating the certificate used by prometheus.
cloudkitty_prometheus_insecure_connections: false
####################
# Fetcher
####################
# Valid options are 'keystone', 'source', 'gnocchi', 'monasca' or 'prometheus'.
# The default value is 'keystone', which matches the default in CloudKitty.
cloudkitty_fetcher_backend: "keystone"
####################
# Keystone
####################
......
......@@ -56,11 +56,6 @@ collector = {{ cloudkitty_collector_backend }}
metrics_conf = /etc/cloudkitty/{{ cloudkitty_custom_metrics_yaml_file }}
{% endif %}
[fetcher_keystone]
keystone_version = 3
auth_section = keystone_authtoken
region_name = {{ openstack_region_name }}
{% if cloudkitty_collector_backend == "gnocchi" %}
[collector_gnocchi]
auth_section = keystone_authtoken
......@@ -84,6 +79,16 @@ cafile = {{ cloudkitty_prometheus_cafile }}
insecure = {{ cloudkitty_prometheus_insecure_connections }}
{% endif %}
[fetcher]
backend = {{ cloudkitty_fetcher_backend }}
{% if cloudkitty_fetcher_backend == "keystone" %}
[fetcher_keystone]
keystone_version = 3
auth_section = keystone_authtoken
region_name = {{ openstack_region_name }}
{% endif %}
[api]
host_ip = {{ api_interface_address }}
port = {{ cloudkitty_api_port }}
......
......@@ -51,6 +51,17 @@ Alternatively, to use the Monasca collector backend:
cloudkitty_collector_backend: monasca
CloudKitty Fetcher Backend
~~~~~~~~~~~~~~~~~~~~~~~~~~
CloudKitty natively supports multiple fetcher backends.
By default Kolla Ansible uses the ``keystone`` backend. This can be changed
using the ``cloudkitty_fetcher_backend`` option.
You will need to provide extra configuration for non-default fetchers in
``/etc/kolla/config/cloudkitty.conf``.
Cloudkitty Storage Backend
~~~~~~~~~~~~~~~~~~~~~~~~~~
......
---
features:
- |
Adds support for configuring the CloudKitty fetcher using
``cloudkitty_fetcher_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