mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 19:54:10 -06:00
3fb6319d1b
* Move files to prometheus-library * refactor core prometheus to use prometheus-library * modify client transport options * mock * have a type * import aliases * rename * call the right method * remove unrelated test from the library * update codeowners * go work sync * update go.work.sum * make swagger-clean && make openapi3-gen * add promlib to makefile * remove clilogger * Export the function * update unit test * add prometheus_test.go * fix mock type * use mapUtil from grafana-plugin-sdk-go
34 lines
726 B
JSON
34 lines
726 B
JSON
{
|
|
"status": "success",
|
|
"data": {
|
|
"resultType": "matrix",
|
|
"result": [
|
|
{
|
|
"metric": {
|
|
"__name__": "prometheus_http_requests_total",
|
|
"code": "200",
|
|
"handler": "/api/v1/query_range",
|
|
"job": "prometheus"
|
|
},
|
|
"values": [
|
|
[1641889530.123, "21"],
|
|
[1641889531.123, "32"],
|
|
[1641889532.123, "43"]
|
|
]
|
|
},
|
|
{
|
|
"metric": {
|
|
"__name__": "prometheus_http_requests_total",
|
|
"code": "400",
|
|
"handler": "/api/v1/query_range",
|
|
"job": "prometheus"
|
|
},
|
|
"values": [
|
|
[1641889529.123, "54"],
|
|
[1641889532.123, "76"]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|