scrape: fix prometheus_target_scrape_pool_target_limit metric not set on creating scrape pool (#12001)

Signed-off-by: Jimmie Han <hanjinming@outlook.com>
This commit is contained in:
Jimmie Han 2023-02-21 13:14:01 +08:00
parent 86d3d5fec6
commit a13249a98f
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ func newScrapePool(cfg *config.ScrapeConfig, app storage.Appendable, jitterSeed
options.PassMetadataInContext,
)
}
targetScrapePoolTargetLimit.WithLabelValues(sp.config.JobName).Set(float64(sp.config.TargetLimit))
return sp, nil
}