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

Allow Users to Run Multiple Scripts #103

Closed ricoberger closed 11 months ago

ricoberger commented 11 months ago

Until now it was only possible to run a single script within one Prometheus job, because the script parameter could only be provided one time.

With the changes in this commit it is now possible to run multiple scripts within one Prometheus job, for that the script parameter can be specified multiple times. For each specified script we are running the same logic as for a single script and then we merge the output of each script execution into one result.

Limitations:

Closes #100