fix(metricpass): Use correct logic expression in benchmark (#14131)
This commit is contained in:
parent
9c8c06eebf
commit
7c8200fd65
|
|
@ -660,8 +660,8 @@ func BenchmarkFilter(b *testing.B) {
|
||||||
name: "metric filter complex",
|
name: "metric filter complex",
|
||||||
filter: Filter{
|
filter: Filter{
|
||||||
MetricPass: `"source" in tags` +
|
MetricPass: `"source" in tags` +
|
||||||
` and fields.exists(f, type(fields[f]) in [int, uint, double] and fields[f] > 20.0)` +
|
` && fields.exists(f, type(fields[f]) in [int, uint, double] && fields[f] > 20.0)` +
|
||||||
` and time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`,
|
` && time >= timestamp("2023-04-25T00:00:00Z") - duration("24h")`,
|
||||||
},
|
},
|
||||||
metric: testutil.MustMetric("cpu",
|
metric: testutil.MustMetric("cpu",
|
||||||
map[string]string{},
|
map[string]string{},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue