Create collectd config based on haproxy listen metadata
diff --git a/haproxy/files/collectd_haproxy.conf b/haproxy/files/collectd_haproxy.conf
index 93f82c1..e14eb7a 100644
--- a/haproxy/files/collectd_haproxy.conf
+++ b/haproxy/files/collectd_haproxy.conf
@@ -1,9 +1,13 @@
+{%- from "haproxy/map.jinja" import proxy with context %}
+{%- if proxy.enabled and proxy.listen is defined and proxy.listen|length > 0 %}
+
 Import "haproxy"
 
 <Module "haproxy">
-    ProxyIgnore "rabbitmq_cluster"
-    ProxyIgnore "contrail_collector_stats"
-    ProxyIgnore "contrail_config_stats"
-
-    Socket "{{ plugin.socket }}"
+{%- for listen_name, listen in proxy.listen.iteritems() if not listen.get('check', True) %}
+  ProxyIgnore "{{ listen_name }}"
+{%- endfor %}
+  Socket "{{ plugin.socket }}"
 </Module>
+
+{%- endif %}