Prometheus: Fix interpolating minStep for range queries when incremental querying enabled (#107715)
* return calculatedMinStep in first frame of the response * update test files * make the custom metadata as type of map[string]any * append calculatedMinStep to custom metadata * fix exemplar frame checking
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
// 1
|
||||
// ],
|
||||
// "custom": {
|
||||
// "calculatedMinStep": 1000,
|
||||
// "resultType": "matrix"
|
||||
// },
|
||||
// "executedQueryString": "Expr: histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[4s])) by (le))\nStep: 1s"
|
||||
@@ -44,6 +45,7 @@
|
||||
1
|
||||
],
|
||||
"custom": {
|
||||
"calculatedMinStep": 1000,
|
||||
"resultType": "matrix"
|
||||
},
|
||||
"executedQueryString": "Expr: histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[4s])) by (le))\nStep: 1s"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
// 1
|
||||
// ],
|
||||
// "custom": {
|
||||
// "calculatedMinStep": 1000,
|
||||
// "resultType": "matrix"
|
||||
// },
|
||||
// "executedQueryString": "Expr: 1 / 0\nStep: 1s"
|
||||
@@ -37,6 +38,7 @@
|
||||
1
|
||||
],
|
||||
"custom": {
|
||||
"calculatedMinStep": 1000,
|
||||
"resultType": "matrix"
|
||||
},
|
||||
"executedQueryString": "Expr: 1 / 0\nStep: 1s"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
// 1
|
||||
// ],
|
||||
// "custom": {
|
||||
// "calculatedMinStep": 1000,
|
||||
// "resultType": "matrix"
|
||||
// },
|
||||
// "executedQueryString": "Expr: test1\nStep: 1s"
|
||||
@@ -37,6 +38,7 @@
|
||||
1
|
||||
],
|
||||
"custom": {
|
||||
"calculatedMinStep": 1000,
|
||||
"resultType": "matrix"
|
||||
},
|
||||
"executedQueryString": "Expr: test1\nStep: 1s"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
// 1
|
||||
// ],
|
||||
// "custom": {
|
||||
// "calculatedMinStep": 1000,
|
||||
// "resultType": "matrix"
|
||||
// },
|
||||
// "executedQueryString": "Expr: \nStep: 1s"
|
||||
@@ -37,6 +38,7 @@
|
||||
1
|
||||
],
|
||||
"custom": {
|
||||
"calculatedMinStep": 1000,
|
||||
"resultType": "matrix"
|
||||
},
|
||||
"executedQueryString": "Expr: \nStep: 1s"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
// 1
|
||||
// ],
|
||||
// "custom": {
|
||||
// "calculatedMinStep": 1000,
|
||||
// "resultType": "matrix"
|
||||
// },
|
||||
// "executedQueryString": "Expr: \nStep: 1s"
|
||||
@@ -60,6 +61,7 @@
|
||||
1
|
||||
],
|
||||
"custom": {
|
||||
"calculatedMinStep": 1000,
|
||||
"resultType": "matrix"
|
||||
},
|
||||
"executedQueryString": "Expr: \nStep: 1s"
|
||||
|
||||
Reference in New Issue
Block a user