mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
83870aeb8d
Signed-off-by: hagen1778 <roman@victoriametrics.com> Signed-off-by: hagen1778 <roman@victoriametrics.com>
14 lines
644 B
JSON
14 lines
644 B
JSON
{
|
|
"name": "subquery-aggregation",
|
|
"issue": "https://github.com/VictoriaMetrics/VictoriaMetrics/issues/184",
|
|
"data": [
|
|
"forms_daily_count;item=x 1 {TIME_S-1m}",
|
|
"forms_daily_count;item=x 2 {TIME_S-2m}",
|
|
"forms_daily_count;item=y 3 {TIME_S-1m}",
|
|
"forms_daily_count;item=y 4 {TIME_S-2m}"],
|
|
"query": ["/api/v1/query?query=min%20by%20(item)%20(min_over_time(forms_daily_count[10m:1m]))&time={TIME_S-1m}&latency_offset=1ms"],
|
|
"result_query": {
|
|
"status":"success",
|
|
"data":{"resultType":"vector","result":[{"metric":{"item":"x"},"value":["{TIME_S-1m}","2"]},{"metric":{"item":"y"},"value":["{TIME_S-1m}","4"]}]}
|
|
}
|
|
}
|