Add support from prometheus

Change-Id: I07c9e34a14b79caf8b5d4f7c837882a464511c7e
diff --git a/fluentd/meta/prometheus.yml b/fluentd/meta/prometheus.yml
new file mode 100644
index 0000000..3c56a49
--- /dev/null
+++ b/fluentd/meta/prometheus.yml
@@ -0,0 +1,19 @@
+{%- from "fluentd/map.jinja" import fluentd_agent with context %}
+{%- if fluentd_agent.get('enabled', False) and fluentd_agent.get('config', {}).get('input', {}).get('prometheus') is defined %}
+server:
+  {%- set fqdn_ip4_addresses = [] %}
+  {%- for addr in grains['fqdn_ip4'] %}
+    {%- if not addr.startswith('127.') %}
+      {%- do fqdn_ip4_addresses.append(addr) %}
+    {%- endif %}
+  {%- endfor %}
+  {%- set address = fqdn_ip4_addresses[0] %}
+  {%- if address is defined %}
+  target:
+    static:
+      fluentd:
+        endpoint:
+          - address: {{ address }}
+            port: 24231
+  {%- endif %}
+{%- endif %}
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 1fc7796..12a793d 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -1,4 +1,5 @@
 parameters:
   fluentd:
     _support:
-      enabled: true
+      prometheus:
+        enabled: true