Add local endpoint check in collectd

Change-Id: Idfcaf03272ec09eae632e2c0cd12ac6bbc201973
diff --git a/glance/meta/collectd.yml b/glance/meta/collectd.yml
index 99ae989..ccc5e9d 100644
--- a/glance/meta/collectd.yml
+++ b/glance/meta/collectd.yml
@@ -1,4 +1,10 @@
 {%- from "glance/map.jinja" import server with context %}
+local_plugin:
+  collectd_check_local_endpoint:
+    endpoint:
+      glance-api:
+        expected_code: 300
+        url: "http://{{ server.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.port }}/"
 
 remote_plugin:
   openstack_glance: