Prometheus: add tests covering the prometheus-response to dataframes conversion (#43892)

* prometheus: add tests covering prometheus_response to grafana_dataframes

* fixed variable name

* added comment

* removed not-helping function call
This commit is contained in:
Gábor Farkas
2022-01-13 11:52:50 +01:00
committed by GitHub
parent 01dd623daa
commit 4a88b8f66c
14 changed files with 366 additions and 11 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "200",
"handler": "/api/v1/query_range",
"job": "prometheus"
},
"values": [
[1641889530, "21"],
[1641889531, "32"],
[1641889532, "43"]
]
},
{
"metric": {
"__name__": "prometheus_http_requests_total",
"code": "400",
"handler": "/api/v1/query_range",
"job": "prometheus"
},
"values": [
[1641889530, "54"],
[1641889531, "65"],
[1641889532, "76"]
]
}
]
}
}