net-mgmt/telegraf: don't set timeout for disabled InfluxDB v2 (#3313)

* net-mgmt/telegraf: don't set timeout for disabled InfluxDB v2

* forgot to version bump
This commit is contained in:
Gavin Chappell
2023-06-28 10:22:37 +02:00
committed by GitHub
parent ca9bd30a95
commit 92cbb2fd69
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= telegraf
PLUGIN_VERSION= 1.12.7
PLUGIN_VERSION= 1.12.8
PLUGIN_COMMENT= Agent for collecting metrics and data
PLUGIN_DEPENDS= telegraf
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -12,6 +12,10 @@ WWW: https://www.influxdata.com/time-series-platform/telegraf/
Plugin Changelog
================
1.12.8
* bug: fix InfluxDB v2 template to remove erroneous `timeout` value (issue #3265, contributed by Gavin Chappell)
1.12.7
* Add Influx v2 flush timeout
@@ -175,10 +175,10 @@
{% else %}
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 %}
{% endif %}
{% if helpers.exists('OPNsense.telegraf.input.cpu') and OPNsense.telegraf.input.cpu == '1' %}
[[inputs.cpu]]