If you pass and array in as the target argument for the prometheus_job lwrp like:
prometheus_job "influx" do
target ["influx-001.example.com:9100", "influx-002.example.com:9100"]
metrics_path "#{node['prometheus']['flags']['web.telemetry-path']}"
end
If you pass and array in as the
target
argument for theprometheus_job
lwrp like:Results with an entry in
prometheus.yml
like:Is this expected behavior?
I would have expected it to not wrap it in a extra array. Its not valid as a config for
prometheus.yml
Am I doing something wrong?
Thanks, Rob