Unverified Commit b1765d03 authored by Adam Gardner's avatar Adam Gardner Committed by GitHub

[telegraf-ds] Add option for simple override of TOML config file contents (#239)

* Add support for overriding entire TOML config as an escape valve * Update version number
parent f302281c
apiVersion: v1
name: telegraf-ds
version: 1.0.18
version: 1.0.19
appVersion: 1.16
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......@@ -10,6 +10,8 @@ keywords:
- timeseries
- influxdata
home: https://www.influxdata.com/time-series-platform/telegraf/
sources:
- https://github.com/influxdata/helm-charts/charts/telegraf-ds
maintainers:
- name: rawkode
email: rawkode@influxdata.com
......
......@@ -5,6 +5,10 @@ metadata:
labels:
{{- include "telegraf.labels" . | nindent 4 }}
data:
{{- if .Values.override_config.toml }}
telegraf.conf: |+
{{- .Values.override_config.toml | nindent 4 }}
{{- else }}
telegraf.conf: |+
{{ template "global_tags" .Values.config.global_tags }}
{{ template "agent" .Values.config.agent }}
......@@ -37,3 +41,4 @@ data:
url = "https://$HOSTIP:10250"
bearer_token = "/run/secrets/kubernetes.io/serviceaccount/token"
insecure_skip_verify = true
{{- end }}
\ No newline at end of file
......@@ -65,6 +65,21 @@ serviceAccount:
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
# priorityClassName: system-node-critical
override_config:
toml: ~
# Provide a literal TOML config
# toml: |+
# [global_tags]
# foo = "bar"
# [agent]
# interval = "10s"
# [[inputs.mem]]
# [[outputs.influxdb_v2]]
# urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
# bucket = "data"
# organization = "OurCompany"
# token = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
## Exposed telegraf configuration
## ref: https://docs.influxdata.com/telegraf/v1.13/administration/configuration/
config:
......
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