Skip to content
Snippets Groups Projects
Commit 5a427a94 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "integrate gnocchi with cloudkitty"

parents ff3813e7 e7df1824
No related branches found
No related tags found
No related merge requests found
...@@ -360,6 +360,14 @@ gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}" ...@@ -360,6 +360,14 @@ gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}"
################################# #################################
cinder_backend_ceph: "{{ enable_ceph }}" cinder_backend_ceph: "{{ enable_ceph }}"
#######################
# Cloudkitty options
#######################
# Valid options are [ ceilometer, gnocchi ]
cloudkitty_collector_backend: "ceilometer"
####################### #######################
# Nova options # Nova options
####################### #######################
......
...@@ -27,7 +27,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi ...@@ -27,7 +27,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi
lock_path = /var/lib/cloudkitty/tmp lock_path = /var/lib/cloudkitty/tmp
[collect] [collect]
collector = ceilometer collector = {{ cloudkitty_collector_backend }}
services = compute,image{% if enable_cinder | bool %},volume{% endif %}, network_bw_out, network_bw_in, network_floating services = compute,image{% if enable_cinder | bool %},volume{% endif %}, network_bw_out, network_bw_in, network_floating
[oslo_messaging_notifications] [oslo_messaging_notifications]
...@@ -38,8 +38,13 @@ topics = notifications ...@@ -38,8 +38,13 @@ topics = notifications
keystone_version = 3 keystone_version = 3
auth_section = keystone_authtoken auth_section = keystone_authtoken
{% if cloudkitty_collector_backend == "gnocchi" %}
[gnocchi_collector]
auth_section = keystone_authtoken
{% elif cloudkitty_collector_backend == "ceilometer" %}
[ceilometer_collector] [ceilometer_collector]
auth_section = keystone_authtoken auth_section = keystone_authtoken
{% endif %}
[api] [api]
host_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} host_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
......
---
features:
- support use gnocchi collector in cloudkitty
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