Merge "Add support of https endpoint check"
diff --git a/aodh/meta/telegraf.yml b/aodh/meta/telegraf.yml
index 6fe905c..c0ffc04 100644
--- a/aodh/meta/telegraf.yml
+++ b/aodh/meta/telegraf.yml
@@ -1,9 +1,10 @@
{%- from "aodh/map.jinja" import server with context %}
{%- if server.get('enabled', False) %}
+ {%- set protocol = server.get('identity', {}).get('protocol', 'http') %}
agent:
input:
http_response:
aodh-api:
- address: "http://{{ server.bind.host|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.port }}/"
+ address: "{{ protocol }}://{{ server.bind.host|replace('0.0.0.0', '127.0.0.1') }}:{{ server.bind.port }}/"
expected_code: 401
{%- endif %}