Set octavia healthcheck protocol accodring to identity configuration

PROD-33871

Change-Id: I2f0d6458684ba7af38e21eed3868c708535d203f
diff --git a/octavia/meta/telegraf.yml b/octavia/meta/telegraf.yml
index 2af7d05..50be25a 100644
--- a/octavia/meta/telegraf.yml
+++ b/octavia/meta/telegraf.yml
@@ -1,9 +1,10 @@
 {%- from "octavia/map.jinja" import api with context %}
 {%- if api.get('enabled', False) %}
+{%- set protocol = api.get('identity', {}).get('protocol', 'http') %}
 agent:
   input:
     http_response:
       octavia-api:
-        address: "http://{{ api.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ api.bind.port }}/"
+        address: "{{ protocol }}://{{ api.bind.address|replace('0.0.0.0', '127.0.0.1') }}:{{ api.bind.port }}/"
         expected_code: 200
 {%- endif %}