Commit 35fc08ee authored by Maxence Cramet's avatar Maxence Cramet Committed by David McKay

Adding a flag to enable inputs internal plugin

parent 271aeacf
...@@ -79,3 +79,7 @@ This chart deploys the following by default: ...@@ -79,3 +79,7 @@ This chart deploys the following by default:
* [`processes`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/processes) * [`processes`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/processes)
* [`swap`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/swap) * [`swap`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/swap)
* [`system`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system) * [`system`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system)
The following plugin can be enable through the configuration:
- [`internal`](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/internal)
...@@ -388,3 +388,11 @@ Create the name of the service account to use ...@@ -388,3 +388,11 @@ Create the name of the service account to use
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{/*
Activate inputs.internal through flag monitor_self
*/}}
{{- define "monitor_self" -}}
{{- if . -}}
[[inputs.internal]]
{{- end }}
{{- end -}}
...@@ -14,6 +14,7 @@ data: ...@@ -14,6 +14,7 @@ data:
{{ template "processors" .Values.config.processors }} {{ template "processors" .Values.config.processors }}
{{ template "aggregators" .Values.config.aggregators }} {{ template "aggregators" .Values.config.aggregators }}
{{ template "outputs" .Values.config.outputs }} {{ template "outputs" .Values.config.outputs }}
{{ template "monitor_self" .Values.config.monitor_self }}
[[inputs.diskio]] [[inputs.diskio]]
[[inputs.kernel]] [[inputs.kernel]]
......
...@@ -81,3 +81,4 @@ config: ...@@ -81,3 +81,4 @@ config:
password: "" password: ""
user_agent: "telegraf" user_agent: "telegraf"
insecure_skip_verify: false insecure_skip_verify: false
monitor_self: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment