This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Description
In order to support distribution of Prometheus scrape targets among a set of Collector instances as required for #6 we will need to create a mechanism for updating the set of scrape targets used by any given Collector instance. The Prometheus receiver should be extended with a server that can process requests to update the scrape targets for a given job. It should receive a list of Prometheus static_config entries that are written to a file the receiver is watching with a file_sd_config. This service should only be active when enabled by a new configuration option for the Prometheus receiver that is disabled by default. The configuration should also allow the user to specify the port the service will listen on along with any other service configuration items that may be appropriate.
This issue should be used to track the design of this service and to aggregate any other issues or PRs created during implementation.