coderbunker / supernanny-cloud

1 stars 0 forks source link

Autogenerate Telegraph Configs #15

Open codebru opened 6 years ago

codebru commented 6 years ago

Investigate ways/benefits to generating telegraf configs

Questions: Is there a benefit to autogenerating the configs? How can usernames and passwords be handled?

lenzai commented 6 years ago

multiple config files in a folder could help protect the password ( i.e. we do not commit the password conf file) https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md

Also environment variables could work but some argue that it's not suitable for auto restart services. https://github.com/influxdata/telegraf/issues/3124

xuyuji9000 commented 6 years ago

Saw a friend using ansible template compose and injecting secrets into configuration.

coderbunker/prometheus-playground#2

Here has the similar problem need to be solve, Would love to learn.