Add collectd support
Change-Id: Icd8174b09922a99d3132e93a8ce5151e7cc51a18
This commit is contained in:
parent
1a0a64ac2e
commit
658c93db9e
|
@ -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>
|
|
@ -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 %}
|
|
@ -2,7 +2,7 @@ parameters:
|
|||
cinder:
|
||||
_support:
|
||||
collectd:
|
||||
enabled: false
|
||||
enabled: true
|
||||
heka:
|
||||
enabled: true
|
||||
sensu:
|
||||
|
|
Loading…
Reference in New Issue