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
ea357a77
Unverified
Commit
ea357a77
authored
Mar 21, 2022
by
alespour
Committed by
GitHub
Mar 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[telegraf-ds] configurable docker plugin socket (#411)
* configurable docker socket * add test values * bump version
parent
4a67a651
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
4 deletions
+15
-4
Chart.yaml
charts/telegraf-ds/Chart.yaml
+1
-1
default-values.yaml
charts/telegraf-ds/ci/default-values.yaml
+1
-0
docker-no-endpoint-values.yaml
charts/telegraf-ds/ci/docker-no-endpoint-values.yaml
+2
-0
configmap.yaml
charts/telegraf-ds/templates/configmap.yaml
+3
-1
daemonset.yaml
charts/telegraf-ds/templates/daemonset.yaml
+7
-2
values.yaml
charts/telegraf-ds/values.yaml
+1
-0
No files found.
charts/telegraf-ds/Chart.yaml
View file @
ea357a77
apiVersion
:
v1
name
:
telegraf-ds
version
:
1.0.3
1
version
:
1.0.3
2
appVersion
:
1.21.4
deprecated
:
false
description
:
Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
...
...
charts/telegraf-ds/ci/default-values.yaml
0 → 100644
View file @
ea357a77
# Default values only, no overrides
charts/telegraf-ds/ci/docker-no-endpoint-values.yaml
0 → 100644
View file @
ea357a77
config
:
docker_endpoint
:
"
"
charts/telegraf-ds/templates/configmap.yaml
View file @
ea357a77
...
...
@@ -34,8 +34,10 @@ data:
[[inputs.disk]]
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]
{{- if .Values.config.docker_endpoint }}
[[inputs.docker]]
endpoint = "unix:///var/run/docker.sock"
endpoint = {{ .Values.config.docker_endpoint | quote }}
{{- end }}
[[inputs.kubernetes]]
url = "https://$HOSTIP:10250"
...
...
charts/telegraf-ds/templates/daemonset.yaml
View file @
ea357a77
...
...
@@ -46,8 +46,10 @@ spec:
-
name
:
hostfsro
mountPath
:
/hostfs
readOnly
:
true
{{
- if hasPrefix "unix" .Values.config.docker_endpoint
}}
-
name
:
docker-socket
mountPath
:
/var/run/docker.sock
mountPath
:
{{
trimPrefix "unix
:
//" .Values.config.docker_endpoint
}}
{{
- end
}}
-
name
:
config
mountPath
:
/etc/telegraf
{{
- with .Values.nodeSelector
}}
...
...
@@ -66,9 +68,12 @@ spec:
-
name
:
hostfsro
hostPath
:
path
:
/
{{
- if hasPrefix "unix" .Values.config.docker_endpoint
}}
-
name
:
docker-socket
hostPath
:
path
:
/var/run/docker.sock
path
:
{{
trimPrefix "unix
:
//" .Values.config.docker_endpoint
}}
type
:
Socket
{{
- end
}}
-
name
:
varrunutmpro
hostPath
:
path
:
/var/run/utmp
...
...
charts/telegraf-ds/values.yaml
View file @
ea357a77
...
...
@@ -135,3 +135,4 @@ config:
user_agent
:
"
telegraf"
insecure_skip_verify
:
false
monitor_self
:
false
docker_endpoint
:
"
unix:///var/run/docker.sock"
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