You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inputs and outputs (and aggregators if I ever get a PR ready for that) that previously had no configuration no longer work.
cpu: was previously enough to create a cpu input. Now cpu: fails because telegraf.conf.erb:80 expects it to contain an array, and cpu: [] fails because the first element of that array is expected to be a hash. I find myself having to do some nonsense like this:
cpu:
- placeholderkey: placeholdervalue
which of course ends up polluting my actual telegraf.conf with those placeholders.
If there's a better way to make this work with the new code from #80, I would love to know. If there's not, this seems severe enough to be a bug in need of fixing, and maybe fixing it would also address the minor annoyance of old configs not working with the new code; it would be nice if the code recognized a bare hash as functionally identical to an array containing one hash.
The text was updated successfully, but these errors were encountered:
sparr
changed the title
New array format for input/output definition in hiera has side effects
New array format for input/output definition in hiera requires polluting configs
Jan 20, 2018
Inputs and outputs (and aggregators if I ever get a PR ready for that) that previously had no configuration no longer work.
cpu:was previously enough to create a cpu input. Nowcpu:fails because telegraf.conf.erb:80 expects it to contain an array, andcpu: []fails because the first element of that array is expected to be a hash. I find myself having to do some nonsense like this:which of course ends up polluting my actual telegraf.conf with those placeholders.
If there's a better way to make this work with the new code from #80, I would love to know. If there's not, this seems severe enough to be a bug in need of fixing, and maybe fixing it would also address the minor annoyance of old configs not working with the new code; it would be nice if the code recognized a bare hash as functionally identical to an array containing one hash.
The text was updated successfully, but these errors were encountered: