Skip to content

Commit b1aff88

Browse files
committed
feat(telegraf): enable prometheus flag
1 parent 04f65c6 commit b1aff88

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
@@ -33,6 +33,8 @@ spec:
3333
value: "100000"
3434
- name: "ENABLE_INFLUXDB_INPUT"
3535
value: "true"
36+
- name: "ENABLE_PROMETHEUS"
37+
value: "true"
3638
volumeMounts:
3739
- mountPath: /var/run/docker.sock
3840
name: docker-socket

telegraf/rootfs/config.toml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
{{ if .POSTGRESQL_DATABASES }} databases = [{{ .POSTGRESQL_DATABASES }}] {{ end }}
202202
{{ end }}
203203

204-
{{ if .PROMETHEUS_URLS }}
204+
{{ if and .PROMETHEUS_URLS .ENABLE_PROMETHEUS }}
205205
[[inputs.prometheus]]
206206
urls = [{{ .PROMETHEUS_URLS }}]
207207
insecure_skip_verify = {{ default true .PROMETHEUS_INSECURE_SKIP_VERIFY }}

0 commit comments

Comments
 (0)