Merge "Add local endpoint check in collectd" into stacklight
diff --git a/cinder/meta/collectd.yml b/cinder/meta/collectd.yml
index feb837b..8a62dc8 100644
--- a/cinder/meta/collectd.yml
+++ b/cinder/meta/collectd.yml
@@ -1,6 +1,11 @@
{%- if pillar.cinder.controller is defined %}
{%- from "cinder/map.jinja" import controller with context %}
-
+local_plugin:
+ collectd_check_local_endpoint:
+ endpoint:
+ cinder-api:
+ expected_code: 200
+ url: "http://{{ controller.osapi.host|replace('0.0.0.0', '127.0.0.1') }}:8776/"
remote_plugin:
openstack_cinder:
plugin: python