Skip to content

Commit 634e534

Browse files
author
Jonathan Chauncey
committed
Merge pull request #106 from sstarcher/enable_etcd
enable etcd
2 parents b265522 + f8bfa8d commit 634e534

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

telegraf/rootfs/config.toml.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@
208208
bearer_token = {{ .PROMETHEUS_BEARER_TOKEN | quote }}
209209
{{ end }}
210210

211+
{{ if .ENABLE_ETCD }}
212+
[[inputs.prometheus]]
213+
urls = [{{ (default "http://localhost:2379/metrics" .ETCD_URLS) }}]
214+
{{ end }}
215+
211216
{{ if .RABBITMQ_URL }}
212217
[[inputs.rabbitmq]]
213218
url = {{ .RABBITMQ_URL | quote }}

0 commit comments

Comments
 (0)