lib/promscrape: fix vmagent tickerCh reload behaviour (#2786)

Co-authored-by: Dmitriy <dab@ttyv.ru>
This commit is contained in:
ttyv 2022-06-30 13:33:01 +03:00 committed by Aliaksandr Valialkin
parent 0b76d07c21
commit 00956e585d
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -163,6 +163,7 @@ func runScraper(configFile string, pushData func(wr *prompbmarshal.WriteRequest)
cfgNew.mustRestart(cfg)
cfg = cfgNew
data = dataNew
marshaledData = cfgNew.marshal()
configData.Store(&marshaledData)
case <-globalStopCh:
cfg.mustStop()