blackbox_exporter icon indicating copy to clipboard operation
blackbox_exporter copied to clipboard

Support for dynamic configuration?

Open dudicoco opened this issue 1 year ago • 1 comments

Hi,

I would like to set up a dynamic configuration for Blackbox exporter within k8s.

With Prometheus, you can load configuration files from a path on the disk, for example:

rule_files:
- /etc/prometheus/rules/*

This allows us to dynamically add files containing Prometheus rules rather than editing the main config file.

Similarly with the Blackbox exporter I would like to load modules dynamically rather than having them all in a single file as that file is being used by many different apps with many different needs.

Is there such possibility currently?

dudicoco avatar Jul 05 '22 11:07 dudicoco

I know this comment was added a while ago, I want to add my thoughts, as I believe it would be a useful feature.

I would love it to be implemented like the Service Discovery feature in Prometheus, where you have one or more separate JSON files that would dynamically load. We have an setup where we add environments using script and this setup would make it a lot easier to add endpoints.

rule_files:
- /etc/prometheus/rules/rules1.json

tomasrudh avatar Feb 06 '24 13:02 tomasrudh