Merge pull request #15489 from yeya24/fix-always-scrape-classic-hist-reload

hot reload always_scrape_classic_histograms and convert_classic_histo…
This commit is contained in:
Björn Rabenstein 2024-12-04 14:03:21 +01:00 committed by GitHub
commit d8efb7169d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,6 +330,8 @@ func (sp *scrapePool) restartLoops(reuseCache bool) {
trackTimestampsStaleness = sp.config.TrackTimestampsStaleness trackTimestampsStaleness = sp.config.TrackTimestampsStaleness
mrc = sp.config.MetricRelabelConfigs mrc = sp.config.MetricRelabelConfigs
fallbackScrapeProtocol = sp.config.ScrapeFallbackProtocol.HeaderMediaType() fallbackScrapeProtocol = sp.config.ScrapeFallbackProtocol.HeaderMediaType()
alwaysScrapeClassicHist = sp.config.AlwaysScrapeClassicHistograms
convertClassicHistToNHCB = sp.config.ConvertClassicHistogramsToNHCB
) )
validationScheme := model.UTF8Validation validationScheme := model.UTF8Validation
@ -377,6 +379,8 @@ func (sp *scrapePool) restartLoops(reuseCache bool) {
timeout: targetTimeout, timeout: targetTimeout,
validationScheme: validationScheme, validationScheme: validationScheme,
fallbackScrapeProtocol: fallbackScrapeProtocol, fallbackScrapeProtocol: fallbackScrapeProtocol,
alwaysScrapeClassicHist: alwaysScrapeClassicHist,
convertClassicHistToNHCB: convertClassicHistToNHCB,
}) })
) )
if err != nil { if err != nil {