Merge pull request #12002 from hanjm/fix/jimmiehan-fix-scrape_pool_target_limit-metric

scrape: fix prometheus_target_scrape_pool_target_limit metric not set on creating scrape pool
pull/12044/head
Julien Pivotto 2 years ago committed by GitHub
commit f35ac7929d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

Loading…
Cancel
Save