QubitProducts / exporter_exporter

A reverse proxy designed for Prometheus exporters
Apache License 2.0
336 stars 55 forks source link

Optionally load scrape configs from discrete files in a directory #11

Closed dsvensson closed 6 years ago

dsvensson commented 6 years ago

In more dynamic environment it would be very nice to just be able to drop in a configuration in a directory, and restart exporter_exporter and have it amend those configs to scrape_configs. One could also imagine this was reloaded on HUP. Would such a feature be of interest?

For example:

/etc/exporter_exporter/exporter.yml
/etc/exporter_exporter/scrape_config.d/service1.yml
/etc/exporter_exporter/scrape_config.d/service2.yml
...

Where exporter.yml has some directive for pointing out the scrape_config.d path.

dsvensson commented 6 years ago

Must have read backwards! :)