lib/streamaggr: use multiple job label values in BenchmarkAggregatorsPush instead of single value

This should make the benchmark closer to production cases
This commit is contained in:
Aliaksandr Valialkin 2024-03-04 17:37:16 +02:00
parent f5bbffd45f
commit d42667fc41
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -98,7 +98,7 @@ func newBenchSeries(seriesCount int) []prompbmarshal.TimeSeries {
a := make([]string, seriesCount)
for j := 0; j < seriesCount; j++ {
s := fmt.Sprintf(`http_requests_total{path="/foo/%d",job="foo_%d",instance="bar",pod="pod-123232312",namespace="kube-foo-bar",node="node-123-3434-443",`+
`some_other_label="foo-bar-baz",environment="prod",label1="value1",label2="value2",label3="value3"} %d`, j, j%100, j*1000)
`some_other_label="foo-bar-baz",environment="prod",label1="value1",label2="value2",label3="value3"} %d`, j, j%10, j*1000)
a = append(a, s)
}
metrics := strings.Join(a, "\n")