Skip to content

Commit f8bfa8d

Browse files
committed
feat(telegraf): enable etcd
1 parent b265522 commit f8bfa8d

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)