Add correct scrape context to OS benchmark
Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
parent
dd473c4807
commit
d063bc0842
|
@ -17,7 +17,8 @@ func BenchmarkOsCollect(b *testing.B) {
|
|||
<-metrics
|
||||
}
|
||||
}()
|
||||
s, err := PrepareScrapeContext([]string{"os"})
|
||||
for i := 0; i < b.N; i++ {
|
||||
o.Collect(&ScrapeContext{}, metrics)
|
||||
o.Collect(s, metrics)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue