Proposal
From @roman-vynar #13245 (comment):
looks like I have discovered another bug while testing this, not in v2.48.0 but it is in the main.
Looks like the following commit 6de80d7
It throws errors like this
ts=2023-12-19T15:35:28.274Z caller=consul.go:349 level=error component="discovery manager scrape"
discovery=consul config=xxx msg="Unable to register metrics"
err="failed to register metric: duplicate metrics collector registration attempted"
if you have 1+ jobs with the same type of SD, e.g. 2 jobs with consul_sd_config or azure_sd_config etc.
cc @ptodev do you mind double checking this?