mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/telegraf: add haproxy input (#842)
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user