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

:warning: Fix Environment Variable Handling #81

Closed ricoberger closed 1 year ago

ricoberger commented 1 year ago

In the readme we had an example on how to use the environment variables via key value pairs, but in the code we had it implemented as slice.

To fix this and because I prefer the key value pairs the code was adjusted to use a "map[string]string" instead of a slice of strings to specify the environment variables.

Fixes #80