* 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
37 lines
961 B
JSON
37 lines
961 B
JSON
{
|
|
"status" : "success",
|
|
"data" : {
|
|
"resultType" : "vector",
|
|
"result" : [
|
|
{
|
|
"metric" : {
|
|
"__name__" : "up",
|
|
"job" : "prometheus",
|
|
"instance" : "localhost:9090"
|
|
},
|
|
"value": [ 1435781451.781, "1" ]
|
|
},
|
|
{
|
|
"metric" : {
|
|
"__name__" : "up",
|
|
"job" : "node",
|
|
"instance" : "localhost:9100"
|
|
},
|
|
"value" : [ 1435781451.781, "0" ]
|
|
},
|
|
{
|
|
"metric": { "level": "error", "location": "moon"},
|
|
"value": [1645029699, "+Inf"]
|
|
},
|
|
{
|
|
"metric": { "level": "info", "location": "moon" },
|
|
"value": [1645029699, "-Inf"]
|
|
},
|
|
{
|
|
"metric": { "level": "debug", "location": "moon" },
|
|
"value": [1645029699, "NaN"]
|
|
}
|
|
]
|
|
}
|
|
}
|