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:
ismail simsek
2025-07-15 08:37:43 +02:00
committed by GitHub
parent 868791d751
commit 67573d5513
10 changed files with 41 additions and 5 deletions
+2
View File
@@ -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"
+2
View File
@@ -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"
+2
View File
@@ -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"