hi, all.
when I setting telegraf config file, use the environment variable as below:
[[inputs.zookeeper]]
servers=["$zookeeper_urls"]
since the ‘zookeeper_urls’ is environment variable
export zookeeper_urls=’[“99.12.12.41:2181”,“99.12.12.42:2181”,99.12.12.43:2181]’
when I start telegraf with this config, it outputs no such host, change the file without environment variable as below it works.
servers=[“99.12.12.41:2181”,“99.12.12.42:2181”,99.12.12.43:2181]
it seem that the “zookeeper_urls” is prase as a string result , not extractly to the severs array.
I wonder is any method config a array environment variable, or config a entire environment variable outside the config file