Monitor 2 zookeeper instances if database type is cluster
Related-PROD: PROD-21555

Change-Id: I1afb5e424afca825b9fefa3c322ef52129db0dd0
diff --git a/opencontrail/meta/telegraf.yml b/opencontrail/meta/telegraf.yml
index 69a01ac..cc65a97 100644
--- a/opencontrail/meta/telegraf.yml
+++ b/opencontrail/meta/telegraf.yml
@@ -128,14 +128,16 @@
   {%- endif %}
   {%- if database is defined and database.get('enabled', False) %}
     zookeeper:
-      address: "{{ database.bind.host|replace('0.0.0.0', '127.0.0.1') }}"
+    {%- set addr=database.bind.host|replace('0.0.0.0', '127.0.0.1') %}
       {%- if version < 4.0 %}
-      port: 2181
+      urls: ["{{ addr }}:2181"]
       {%- else %}
-      {%- if database.get('type') == 'control' or database.get('type') == 'cluster' %}
-      port: 2181
+      {%- if database.get('type') == 'control'%}
+      urls: ["{{ addr }}:2181"]
       {%- elif database.get('type') == 'analytics' %}
-      port: 2182
+      urls: ["{{ addr }}:2182"]
+      {%- elif database.get('type') == 'cluster' %}
+      urls: ["{{ addr }}:2181", "{{ addr }}:2182"]
       {%- endif %}
       {%- endif %}
   {%- endif %}