mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix the target count to 10k
Signed-off-by: darshanime <deathbullet@gmail.com>
This commit is contained in:
parent
e441baa93e
commit
36d92e5738
|
@ -633,7 +633,7 @@ func BenchmarkManagerReload(b *testing.B) {
|
||||||
activeTargets: map[uint64]*Target{},
|
activeTargets: map[uint64]*Target{},
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < 10000; i++ {
|
||||||
sp.activeTargets[uint64(i)] = &Target{
|
sp.activeTargets[uint64(i)] = &Target{
|
||||||
discoveredLabels: labels.FromStrings("__address__", fmt.Sprintf("foo-%d", i)),
|
discoveredLabels: labels.FromStrings("__address__", fmt.Sprintf("foo-%d", i)),
|
||||||
labels: labels.FromStrings("label_key", fmt.Sprintf("foo-%d", i)),
|
labels: labels.FromStrings("label_key", fmt.Sprintf("foo-%d", i)),
|
||||||
|
|
Loading…
Reference in a new issue