Merge "Add local endpoint check in collectd" into stacklight

This commit is contained in:
Jenkins 2016-11-08 15:00:26 +00:00 committed by Gerrit Code Review
commit 3ca6a69038
2 changed files with 15 additions and 1 deletions

14
heat/meta/collectd.yml Normal file
View File

@ -0,0 +1,14 @@
{%- if pillar.heat.server is defined %}
{%- from "heat/map.jinja" import server with context %}
{%- if server.get('enabled', False) %}
local_plugin:
collectd_check_local_endpoint:
endpoint:
heat-api:
expected_code: 300
url: "http://{{ server.bind.api|replace('0.0.0.0', '127.0.0.1') }}:8004/"
heat-cfn-api:
expected_code: 300
url: "http://{{ server.bind.api_cfn|replace('0.0.0.0', '127.0.0.1') }}:8000/"
{%- endif %}
{%- endif %}

View File

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