Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
influxdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
influxdb
Commits
b1765d03
Unverified
Commit
b1765d03
authored
Nov 26, 2020
by
Adam Gardner
Committed by
GitHub
Nov 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
Chart.yaml
charts/telegraf-ds/Chart.yaml
+3
-1
configmap.yaml
charts/telegraf-ds/templates/configmap.yaml
+6
-0
values.yaml
charts/telegraf-ds/values.yaml
+15
-0
No files found.
charts/telegraf-ds/Chart.yaml
View file @
b1765d03
apiVersion
:
v1
name
:
telegraf-ds
version
:
1.0.1
8
version
:
1.0.1
9
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
...
...
charts/telegraf-ds/templates/configmap.yaml
View file @
b1765d03
...
...
@@ -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
charts/telegraf-ds/values.yaml
View file @
b1765d03
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment