File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,11 @@ func BenchmarkRangeQuery(b *testing.B) {
135
135
query string
136
136
storage * teststorage.TestStorage
137
137
}{
138
+ {
139
+ name : "experiment" ,
140
+ query : "sum by (pod) (exp(http_requests_total))" ,
141
+ storage : sixHourDataset ,
142
+ },
138
143
{
139
144
name : "vector selector" ,
140
145
query : "http_requests_total" ,
Original file line number Diff line number Diff line change @@ -2671,6 +2671,16 @@ func TestInstantQuery(t *testing.T) {
2671
2671
query string
2672
2672
queryTime time.Time
2673
2673
}{
2674
+ {
2675
+ name : "experiment" ,
2676
+ load : `load 30s
2677
+ http_requests_total{pod="nginx-0", route="/"} 1+1x30
2678
+ http_requests_total{pod="nginx-1", route="/"} 2+1x30
2679
+ http_requests_total{pod="nginx-2", route="/"} 3+1x30
2680
+ http_requests_total{pod="nginx-3", route="/"} 4+1x30` ,
2681
+ query : `sum(exp(http_requests_total))` ,
2682
+ queryTime : time .Unix (300 , 0 ),
2683
+ },
2674
2684
{
2675
2685
name : "offset and @ modifiers" ,
2676
2686
load : `load 30s
You can’t perform that action at this time.
0 commit comments