net-mgmt/telegraf: Add Influxv2 timeout (#3167)

This commit is contained in:
Del Attipoe
2022-11-10 12:40:38 +02:00
committed by GitHub
parent b6a9b0f554
commit ebcdb5eef6
4 changed files with 16 additions and 0 deletions
+3
View File
@@ -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]]