diff --git a/lib/promscrape/config.go b/lib/promscrape/config.go index dc03d686e..a100288d9 100644 --- a/lib/promscrape/config.go +++ b/lib/promscrape/config.go @@ -768,7 +768,7 @@ func needSkipScrapeWork(key string, membersCount, replicasCount, memberNum int) return false } idx++ - if idx >= replicasCount { + if idx >= membersCount { idx = 0 } }