grafana/pkg/promlib/converter/testdata/loki-streams-c.json
ismail simsek 3fb6319d1b
Prometheus: Introduce prometheus backend library (#83952)
* 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
2024-03-11 17:22:33 +01:00

18 lines
326 B
JSON

{
"status": "success",
"data": {
"resultType": "streams",
"result": [
{
"stream": { "label1": "value1" },
"values": [["1655448591000000000", "text1"]
]
},
{
"stream": { "label2": "value2"},
"values": [["1655448592000000000", "text2"]]
}
]
}
}