@@ -125,6 +125,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
125
125
{`min_over_time({a=~".+"} | unwrap b [2s])` , time .Second },
126
126
{`min_over_time({a=~".+"} | unwrap b [2s]) by (a)` , time .Second },
127
127
{`rate({a=~".+"}[2s])` , time .Second },
128
+ {`rate({a=~".+"} | unwrap b [2s])` , time .Second },
128
129
{`bytes_rate({a=~".+"}[2s])` , time .Second },
129
130
130
131
// sum
@@ -136,6 +137,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
136
137
{`sum(min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
137
138
{`sum(min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
138
139
{`sum(rate({a=~".+"}[2s]))` , time .Second },
140
+ {`sum(rate({a=~".+"} | unwrap b [2s]))` , time .Second },
139
141
{`sum(bytes_rate({a=~".+"}[2s]))` , time .Second },
140
142
141
143
// sum by
@@ -147,6 +149,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
147
149
{`sum by (a) (min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
148
150
{`sum by (a) (min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
149
151
{`sum by (a) (rate({a=~".+"}[2s]))` , time .Second },
152
+ {`sum by (a) (rate({a=~".+"} | unwrap b [2s]))` , time .Second },
150
153
{`sum by (a) (bytes_rate({a=~".+"}[2s]))` , time .Second },
151
154
152
155
// count
@@ -158,6 +161,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
158
161
{`count(min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
159
162
{`count(min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
160
163
{`count(rate({a=~".+"}[2s]))` , time .Second },
164
+ {`count(rate({a=~".+"} | unwrap b [2s]))` , time .Second },
161
165
{`count(bytes_rate({a=~".+"}[2s]))` , time .Second },
162
166
163
167
// count by
@@ -169,6 +173,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
169
173
{`count by (a) (min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
170
174
{`count by (a) (min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
171
175
{`count by (a) (rate({a=~".+"}[2s]))` , time .Second },
176
+ {`count by (a) (rate({a=~".+"} | unwrap b [2s]))` , time .Second },
172
177
{`count by (a) (bytes_rate({a=~".+"}[2s]))` , time .Second },
173
178
174
179
// max
@@ -180,6 +185,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
180
185
{`max(min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
181
186
{`max(min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
182
187
{`max(rate({a=~".+"}[2s]))` , time .Second },
188
+ {`max(rate({a=~".+"} | unwrap b [2s]))` , time .Second },
183
189
{`max(bytes_rate({a=~".+"}[2s]))` , time .Second },
184
190
185
191
// max by
@@ -191,6 +197,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
191
197
{`max by (a) (min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
192
198
{`max by (a) (min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
193
199
{`max by (a) (rate({a=~".+"}[2s]))` , time .Second },
200
+ {`max by (a) (rate({a=~".+"} | unwrap b [2s]))` , time .Second },
194
201
{`max by (a) (bytes_rate({a=~".+"}[2s]))` , time .Second },
195
202
196
203
// min
@@ -202,6 +209,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
202
209
{`min(min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
203
210
{`min(min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
204
211
{`min(rate({a=~".+"}[2s]))` , time .Second },
212
+ {`min(rate({a=~".+"} | unwrap b [2s]))` , time .Second },
205
213
{`min(bytes_rate({a=~".+"}[2s]))` , time .Second },
206
214
207
215
// min by
@@ -213,6 +221,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
213
221
{`min by (a) (min_over_time({a=~".+"} | unwrap b [2s]))` , time .Second },
214
222
{`min by (a) (min_over_time({a=~".+"} | unwrap b [2s]) by (a))` , time .Second },
215
223
{`min by (a) (rate({a=~".+"}[2s]))` , time .Second },
224
+ {`min by (a) (rate({a=~".+"} | unwrap b [2s]))` , time .Second },
216
225
{`min by (a) (bytes_rate({a=~".+"}[2s]))` , time .Second },
217
226
218
227
// Label extraction stage
@@ -227,6 +236,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
227
236
{`sum(min_over_time({a=~".+"} | logfmt | unwrap line [2s]))` , time .Second },
228
237
{`sum(min_over_time({a=~".+"} | logfmt | unwrap line [2s]) by (a))` , time .Second },
229
238
{`sum(rate({a=~".+"} | logfmt[2s]))` , time .Second },
239
+ {`sum(rate({a=~".+"} | logfmt | unwrap line [2s]))` , time .Second },
230
240
{`sum(bytes_rate({a=~".+"} | logfmt[2s]))` , time .Second },
231
241
{`sum by (a) (bytes_over_time({a=~".+"} | logfmt [2s]))` , time .Second },
232
242
{`sum by (a) (count_over_time({a=~".+"} | logfmt [2s]))` , time .Second },
@@ -236,6 +246,7 @@ func TestRangeMappingEquivalence(t *testing.T) {
236
246
{`sum by (a) (min_over_time({a=~".+"} | logfmt | unwrap line [2s]))` , time .Second },
237
247
{`sum by (a) (min_over_time({a=~".+"} | logfmt | unwrap line [2s]) by (a))` , time .Second },
238
248
{`sum by (a) (rate({a=~".+"} | logfmt[2s]))` , time .Second },
249
+ {`sum by (a) (rate({a=~".+"} | logfmt | unwrap line [2s]))` , time .Second },
239
250
{`sum by (a) (bytes_rate({a=~".+"} | logfmt[2s]))` , time .Second },
240
251
241
252
{`count(max_over_time({a=~".+"} | logfmt | unwrap line [2s]) by (a))` , time .Second },
0 commit comments