mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net-mgmt/telegraf: merge version 1.4.0 from master
This commit is contained in:
parent
dcabce0bda
commit
7b3a87bda2
4 changed files with 16 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
PLUGIN_NAME= telegraf
|
||||
PLUGIN_VERSION= 1.3.1
|
||||
PLUGIN_VERSION= 1.4.0
|
||||
PLUGIN_COMMENT= Agent for collecting metrics and data
|
||||
PLUGIN_DEPENDS= telegraf
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
|
|
|||
|
|
@ -59,6 +59,12 @@
|
|||
<type>text</type>
|
||||
<help>Use a specific output template. For usage see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>output.graphite_verify</id>
|
||||
<label>Graphite SSL Verification</label>
|
||||
<type>checkbox</type>
|
||||
<help>This will enable verification of a secure connection to Graphite. Default is disabled for compatibility reasons.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>output.graylog_enable</id>
|
||||
<label>Enable Graylog Output</label>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<model>
|
||||
<mount>//OPNsense/telegraf/output</mount>
|
||||
<description>Telegraf outputs configuration</description>
|
||||
<version>1.1.0</version>
|
||||
<version>1.2.0</version>
|
||||
<items>
|
||||
<influx_enable type="BooleanField">
|
||||
<default>0</default>
|
||||
|
|
@ -40,6 +40,10 @@
|
|||
<graphite_template type="TextField">
|
||||
<Required>N</Required>
|
||||
</graphite_template>
|
||||
<graphite_verify type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</graphite_verify>
|
||||
<graylog_enable type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,11 @@
|
|||
template = "{{ OPNsense.telegraf.output.graphite_template }}"
|
||||
{% endif %}
|
||||
timeout = 2
|
||||
{% if helpers.exists('OPNsense.telegraf.output.graphite_verify') and OPNsense.telegraf.output.graphite_verify == '0' %}
|
||||
insecure_skip_verify = true
|
||||
{% else %}
|
||||
insecure_skip_verify = false
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.telegraf.output.graylog_enable') and OPNsense.telegraf.output.graylog_enable == '1' %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue