mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape: fix BenchmarkScrapeWorkScrapeInternal, which has been broken by the commit 65bc460323
This commit is contained in:
parent
7007c6a760
commit
c2373a8109
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ vm_tcplistener_write_calls_total{name="https", addr=":443"} 132356
|
|||
sw.Config = &ScrapeWork{}
|
||||
sw.ReadData = readDataFunc
|
||||
sw.PushData = func(at *auth.Token, wr *prompbmarshal.WriteRequest) {}
|
||||
tsmGlobal.Register(&sw)
|
||||
timestamp := int64(0)
|
||||
for pb.Next() {
|
||||
if err := sw.scrapeInternal(timestamp, timestamp); err != nil {
|
||||
|
@ -90,5 +91,6 @@ vm_tcplistener_write_calls_total{name="https", addr=":443"} 132356
|
|||
}
|
||||
timestamp++
|
||||
}
|
||||
tsmGlobal.Unregister(&sw)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue