Support configuring the CloudKitty fetcher
Change-Id: I6d9ee98912120b9ece60ee22c7b0ad71dab8ed30
This commit is contained in:
parent
3d65a160d9
commit
3058b5bcd7
ansible/roles/cloudkitty
doc/source/reference/rating
releasenotes/notes
@ -174,6 +174,13 @@ cloudkitty_prometheus_url: "{{ internal_protocol }}://{{ kolla_internal_fqdn | p
|
|||||||
# This means, HTTPS connections without validating the certificate used by prometheus.
|
# This means, HTTPS connections without validating the certificate used by prometheus.
|
||||||
cloudkitty_prometheus_insecure_connections: false
|
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
|
# Keystone
|
||||||
####################
|
####################
|
||||||
|
@ -56,11 +56,6 @@ collector = {{ cloudkitty_collector_backend }}
|
|||||||
metrics_conf = /etc/cloudkitty/{{ cloudkitty_custom_metrics_yaml_file }}
|
metrics_conf = /etc/cloudkitty/{{ cloudkitty_custom_metrics_yaml_file }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[fetcher_keystone]
|
|
||||||
keystone_version = 3
|
|
||||||
auth_section = keystone_authtoken
|
|
||||||
region_name = {{ openstack_region_name }}
|
|
||||||
|
|
||||||
{% if cloudkitty_collector_backend == "gnocchi" %}
|
{% if cloudkitty_collector_backend == "gnocchi" %}
|
||||||
[collector_gnocchi]
|
[collector_gnocchi]
|
||||||
auth_section = keystone_authtoken
|
auth_section = keystone_authtoken
|
||||||
@ -84,6 +79,16 @@ cafile = {{ cloudkitty_prometheus_cafile }}
|
|||||||
insecure = {{ cloudkitty_prometheus_insecure_connections }}
|
insecure = {{ cloudkitty_prometheus_insecure_connections }}
|
||||||
{% endif %}
|
{% 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]
|
[api]
|
||||||
host_ip = {{ api_interface_address }}
|
host_ip = {{ api_interface_address }}
|
||||||
port = {{ cloudkitty_api_port }}
|
port = {{ cloudkitty_api_port }}
|
||||||
|
@ -51,6 +51,17 @@ Alternatively, to use the Monasca collector backend:
|
|||||||
|
|
||||||
cloudkitty_collector_backend: monasca
|
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
|
Cloudkitty Storage Backend
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds support for configuring the CloudKitty fetcher using
|
||||||
|
``cloudkitty_fetcher_backend``.
|
Loading…
x
Reference in New Issue
Block a user