net-mgmt/telegraf: add haproxy input (#842)

This commit is contained in:
Michael
2018-09-12 07:05:16 +02:00
committed by Franco Fichtner
parent ee487f15f6
commit f29bb351ab
3 changed files with 15 additions and 0 deletions
@@ -99,4 +99,10 @@
<allownew>true</allownew>
<help>Set the Hosts to ping in a CSV list.</help>
</field>
<field>
<id>input.haproxy</id>
<label>HAProxy</label>
<type>checkbox</type>
<help>Enable the collection of HAProxy statistics.</help>
</field>
</form>
@@ -66,5 +66,9 @@
<ping_hosts type="CSVListField">
<Required>N</Required>
</ping_hosts>
<haproxy type="BooleanField">
<default>0</default>
<Required>N</Required>
</haproxy>
</items>
</model>
@@ -175,4 +175,9 @@
{% endif %}
{% endif %}
{% if helpers.exists('OPNsense.telegraf.input.haproxy') and OPNsense.telegraf.input.haproxy == '1' %}
[[inputs.haproxy]]
servers = ["socket:/var/run/haproxy.socket"]
{% endif %}
{% endif %}