Skip to content

Commit bc94a8a

Browse files
committed
feat(telegraf) - allowing for disabling influxdb input by default, but enabling it in the pod manifest
1 parent 309a589 commit bc94a8a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

telegraf/manifests/deis-monitor-telegraf-daemon.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ spec:
3131
value: "true"
3232
- name: "AGENT_BUFFER_LIMIT"
3333
value: "100000"
34+
- name: "ENABLE_INFLUXDB_INPUT"
35+
value: "true"
3436
volumeMounts:
3537
- mountPath: /var/run/docker.sock
3638
name: docker-socket

telegraf/rootfs/config.toml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
threshold = {{ .HTTP_JSON_THRESHOLD | quote }}
166166
{{end}}
167167

168-
{{ if .INFLUXDB_URLS }}
168+
{{ if .ENABLE_INFLUXDB_INPUT }}
169169
[[inputs.influxdb]]
170170
urls = [{{ (print .INFLUXDB_URLS "/debug/vars") | quote }}]
171171
{{ end }}

0 commit comments

Comments
 (0)