Closed dawidrabiega closed 4 years ago
Wrap the parameter with "
.
See official document: https://docs.fluentd.org/configuration/config-file#embedded-ruby-code
Thanks, It works like a harm!
Correct version:
<source>
@type prometheus_monitor
<labels>
node "#{ENV['NODE_NAME']}"
</labels>
</source>
I'm closing this issue. feel free to ask any questions.
Hey, I need to pass value of environment variable to label value. In my case it's nodeName defined as:
I would use it in source:
Currently it seems, that it's not expanded.