ricoberger / script_exporter

Prometheus exporter to execute scripts and collect metrics from the output or the exit status.
MIT License
354 stars 82 forks source link

Parse Environment Variables in Configuration File #110

Closed ricoberger closed 10 months ago

ricoberger commented 10 months ago

It is now possible to use environment variables in the configuration file (config.yaml). Environment variables can be used via ${ENV_VAR} or $ENV_VAR.

If a user wants to use the $ sign without the environment variable replacement the $ sign must be escaped via $$.

Closes #109