Prometheus: Add BE support for Adhoc Filters (#85969)

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
This commit is contained in:
Kyle Brandt
2024-04-16 16:56:50 +03:00
committed by GitHub
co-authored by ismail simsek
parent 8520892923
commit a12669951b
11 changed files with 309 additions and 35 deletions
+26 -1
View File
@@ -24,6 +24,31 @@
"expr"
],
"properties": {
"adhocFilters": {
"description": "Additional Ad-hoc filters that take precedence over Scope on conflict.",
"type": "array",
"items": {
"description": "ScopeFilter is a hand copy of the ScopeFilter struct from pkg/apis/scope/v0alpha1/types.go to avoid import (temp fix)",
"type": "object",
"required": [
"key",
"value",
"operator"
],
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false
}
},
"datasource": {
"description": "The datasource",
"type": "object",
@@ -148,7 +173,7 @@
"additionalProperties": false
},
"scope": {
"description": "???",
"description": "A set of filters applied to apply to the query",
"type": "object",
"required": [
"title",