Merge "Add support for telegraf"
diff --git a/haproxy/meta/telegraf.yml b/haproxy/meta/telegraf.yml
new file mode 100644
index 0000000..6e28f3b
--- /dev/null
+++ b/haproxy/meta/telegraf.yml
@@ -0,0 +1,8 @@
+{%- from "haproxy/map.jinja" import proxy with context %}
+{%- if proxy.enabled %}
+{%- set servers = [proxy.stats_socket] %}
+agent:
+ input:
+ haproxy:
+ servers: {{ servers|yaml }}
+{%- endif %}
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 95a2e7e..c99e125 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -7,6 +7,8 @@
enabled: true
sensu:
enabled: false
+ telegraf:
+ enabled: true
sphinx:
enabled: true
grafana: