Add support of https endpoint check

Change-Id: I780cf0a1124bbf9f77168a28d74b81824415629b
Related-PROD: PROD-25259 (PROD:25259)
diff --git a/cinder/meta/telegraf.yml b/cinder/meta/telegraf.yml
index c626eaf..0657c94 100644
--- a/cinder/meta/telegraf.yml
+++ b/cinder/meta/telegraf.yml
@@ -1,9 +1,10 @@
 {%- from "cinder/map.jinja" import controller with context %}
 {%- if controller.get('enabled', False) and controller.get('osapi') %}
+{%- set protocol = controller.get('identity', {}).get('protocol', 'http') %}
 agent:
   input:
     http_response:
       cinder-api:
-        address: "http://{{ controller.osapi.host|replace('0.0.0.0', '127.0.0.1') }}:8776/"
+        address: "{{ protocol }}://{{ controller.osapi.host|replace('0.0.0.0', '127.0.0.1') }}:8776/"
         expected_code: {% if controller.version in ('juno', 'kilo', 'liberty') %}200{% else %}300{% endif %}
 {%- endif %}