mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/telegraf: Add Influxv2 timeout (#3167)
This commit is contained in:
@@ -11,6 +11,9 @@ WWW: https://www.influxdata.com/time-series-platform/telegraf/
|
||||
|
||||
Plugin Changelog
|
||||
================
|
||||
1.12.6
|
||||
|
||||
* Add Influx v2 flush timeout
|
||||
|
||||
1.12.6
|
||||
|
||||
|
||||
@@ -77,6 +77,12 @@
|
||||
<type>checkbox</type>
|
||||
<help>This will skip chain and host verification.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>output.influx_v2_timeout</id>
|
||||
<label>Timeout</label>
|
||||
<type>text</type>
|
||||
<help>Flush timeout for the v2 Telegraf output in seconds, formatted as a string. If not provided, will default to 5. 0 means no timeout, but is not recommended. Increase if you get timeout errors.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>output.graphite_enable</id>
|
||||
<label>Enable Graphite Output</label>
|
||||
|
||||
@@ -123,6 +123,10 @@
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</influx_v2_insecure_skip_verify>
|
||||
<influx_v2_timeout type="IntegerField">
|
||||
<default>5</default>
|
||||
<Required>N</Required>
|
||||
</influx_v2_timeout>
|
||||
<datadog_enable type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -176,6 +176,9 @@
|
||||
insecure_skip_verify = false
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.telegraf.output.influx_v2_timeout') and OPNsense.telegraf.output.influx_v2_timeout != '' %}
|
||||
timeout = "{{ OPNsense.telegraf.output.influx_v2_timeout }}s"
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.telegraf.input.cpu') and OPNsense.telegraf.input.cpu == '1' %}
|
||||
[[inputs.cpu]]
|
||||
|
||||
Reference in New Issue
Block a user