Add local endpoint check in collectd
Change-Id: I335e3bd0af58aac9000dcb5d11341246ede26957
diff --git a/keystone/meta/collectd.yml b/keystone/meta/collectd.yml
index 62f9a5a..aaeb5e2 100644
--- a/keystone/meta/collectd.yml
+++ b/keystone/meta/collectd.yml
@@ -1,4 +1,13 @@
{%- from "keystone/map.jinja" import server with context %}
+local_plugin:
+ collectd_check_local_endpoint:
+ endpoint:
+ keystone-public-api:
+ expected_code: 300
+ url: "http://{{ server.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.public_port }}/"
+ keystone-admin-api:
+ expected_code: 300
+ url: "http://{{ server.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.private_port }}/"
remote_plugin:
openstack_keystone: