mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/streamaggr: use multiple job labels in BenchmarkAggregatorsPush
This commit is contained in:
parent
a1e9af3abe
commit
f5bbffd45f
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ func newBenchAggregators(output string, pushFunc PushFunc) *Aggregators {
|
||||||
func newBenchSeries(seriesCount int) []prompbmarshal.TimeSeries {
|
func newBenchSeries(seriesCount int) []prompbmarshal.TimeSeries {
|
||||||
a := make([]string, seriesCount)
|
a := make([]string, seriesCount)
|
||||||
for j := 0; j < seriesCount; j++ {
|
for j := 0; j < seriesCount; j++ {
|
||||||
s := fmt.Sprintf(`http_requests_total{path="/foo/%d",job="foo",instance="bar",pod="pod-123232312",namespace="kube-foo-bar",node="node-123-3434-443",`+
|
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*1000)
|
`some_other_label="foo-bar-baz",environment="prod",label1="value1",label2="value2",label3="value3"} %d`, j, j%100, j*1000)
|
||||||
a = append(a, s)
|
a = append(a, s)
|
||||||
}
|
}
|
||||||
metrics := strings.Join(a, "\n")
|
metrics := strings.Join(a, "\n")
|
||||||
|
|
Loading…
Reference in a new issue