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

Define Additional Scripts via Separate Config Files #116

Closed ricoberger closed 9 months ago

ricoberger commented 9 months ago

It is now possible to define additional scripts for the exporter via separate config files. For that a new option scripts_configs was added, which can be used to set a list of files, which are containing additional script configuration.

The configuration must look as follows:

script_configs:
  - /path/to/file.yaml

The content of the additional scripts configuration file, can only contain a list of scripts, e.g.

- name: test
  command: ./examples/test.sh

Closes #115