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

Script discovery options #89

Closed lufik closed 1 year ago

lufik commented 1 year ago

This PR adds ability to define more discovery options per script like dynamic parameters, prefix, scrape_interval and scrape_target. All of there parameters can be changed via prometheus relabeling.

ricoberger commented 1 year ago

Hi @lufik, thanks for your contribution 🙂

Can you just run go fmt ./... to fix the linting errors, everything else lgtm.

lufik commented 1 year ago

go fmt ./... done. Nice tool for formatting the code, thanks.

ricoberger commented 1 year ago

Thanks again 🙂