#5136·prometheus

Catch when two targets are relabelled to the same labels

Author: gouthamveCreated Jan 25, 2019Updated Sep 15, 2026
Labelskind/enhancementpriority/Pmaybecomponent/scraping

When two different targets end up with the same labels after relabelling, two scrape loops are created and OOO ingestion errors are logged.

We should ideally catch this and log it. And create only one scrape loop per target labelset.

This might break some setups as people might be abusing it already and are safe if the two targets don't have any common metrics.