Proposal
new-service-discovery-manager has been introduced in #9349 and #9537, it's hidden behind --enable-feature=new-service-discovery-manager.
I expect this new manager to be widely adopted by third parties (consumers that use prometheus as a library), as the default manager has been relocated to github.com/prometheus/prometheus/discovery/legacymanager. I don't think they transitioned or have been using a "legacy" dependency without raising any concerns :)
The default legacy manager has known limitations/bugs:
Bugs that affect both managers:
Considering all these factors, let's discuss the new-service-discovery-manager promotion.
Proposal
new-service-discovery-managerhas been introduced in #9349 and #9537, it's hidden behind--enable-feature=new-service-discovery-manager.I expect this new manager to be widely adopted by third parties (consumers that use prometheus as a library), as the default manager has been relocated to
github.com/prometheus/prometheus/discovery/legacymanager. I don't think they transitioned or have been using a "legacy" dependency without raising any concerns :)The default legacy manager has known limitations/bugs:
Bugs that affect both managers:
targetsmap is leaking: Using Prometheus SD as a library did not work as expected #12436 - @machine424 has an idea for a fix for the new manager that needs fix(discovery): make discovery manager notify consumers of dropped targets for still defined jobs #13147Considering all these factors, let's discuss the
new-service-discovery-managerpromotion.