net/telegraf: Add skip_verify also to influxv2 (#2649)

This commit is contained in:
Michael
2021-11-15 10:08:26 +01:00
committed by GitHub
parent aeff602fd2
commit a63070bf50
5 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= telegraf
PLUGIN_VERSION= 1.12.2
PLUGIN_VERSION= 1.12.3
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.3
* Add insecure_skip_verify as an option for Influx v2 output
1.12.2
* Add insecure_skip_verify as an option for Influx v1 output
@@ -71,6 +71,12 @@
<type>text</type>
<help>Set the name of the bucket in Influx v2.</help>
</field>
<field>
<id>output.influx_v2_insecure_skip_verify</id>
<label>Disable SSL verification v2</label>
<type>checkbox</type>
<help>This will skip chain and host verification.</help>
</field>
<field>
<id>output.graphite_enable</id>
<label>Enable Graphite Output</label>
@@ -113,6 +113,10 @@
<default></default>
<Required>N</Required>
</influx_v2_bucket>
<influx_v2_insecure_skip_verify type="BooleanField">
<default>0</default>
<Required>N</Required>
</influx_v2_insecure_skip_verify>
<datadog_enable type="BooleanField">
<default>0</default>
<Required>N</Required>
@@ -164,6 +164,11 @@
{% if helpers.exists('OPNsense.telegraf.output.influx_v2_bucket') and OPNsense.telegraf.output.influx_v2_bucket != '' %}
bucket = "{{ OPNsense.telegraf.output.influx_v2_bucket }}"
{% endif %}
{% if helpers.exists('OPNsense.telegraf.output.influx_v2_insecure_skip_verify') and OPNsense.telegraf.output.influx_v2_insecure_skip_verify == '1' %}
insecure_skip_verify = true
{% else %}
insecure_skip_verify = false
{% endif %}
{% endif %}
{% if helpers.exists('OPNsense.telegraf.input.cpu') and OPNsense.telegraf.input.cpu == '1' %}