Merge "Add collectd support" into stacklight

This commit is contained in:
Jenkins 2016-10-28 08:56:40 +00:00 committed by Gerrit Code Review
commit 66efc77491
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,10 @@
Import "openstack_cinder"
<Module "openstack_cinder">
KeystoneUrl "{{ plugin.url }}"
Username "{{ plugin.username }}"
Password "{{ plugin.password }}"
Tenant "{{ plugin.tenant }}"
MaxRetries "2"
Timeout "20"
</Module>

12
cinder/meta/collectd.yml Normal file
View File

@ -0,0 +1,12 @@
{%- if pillar.cinder.controller is defined %}
{%- from "cinder/map.jinja" import controller with context %}
remote_plugin:
openstack_cinder:
plugin: python
template: cinder/files/collectd_openstack_cinder.conf
url: "http://{{ controller.identity.host }}:{{ controller.identity.port }}/v{% if controller.identity.get('api_version', 2)|int == 2 %}2.0{% else %}3{% endif %}"
username: {{ controller.identity.user }}
password: {{ controller.identity.password }}
tenant: {{ controller.identity.tenant }}
{%- endif %}

View File

@ -2,7 +2,7 @@ parameters:
cinder:
_support:
collectd:
enabled: false
enabled: true
heka:
enabled: true
sensu: