Files
grafana/pkg/promlib/converter/testdata/prom-matrix-frame.jsonc
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

153 lines
4.3 KiB
JSON

// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-multi",
// "typeVersion": [
// 0,
// 0
// ],
// "custom": {
// "resultType": "matrix"
// }
// }
// Name:
// Dimensions: 2 Fields by 3 Rows
// +-----------------------------------+--------------------------------------------------------------+
// | Name: Time | Name: Value |
// | Labels: | Labels: __name__=up, instance=localhost:9090, job=prometheus |
// | Type: []time.Time | Type: []float64 |
// +-----------------------------------+--------------------------------------------------------------+
// | 2015-07-01 20:10:30.781 +0000 UTC | 1 |
// | 2015-07-01 20:10:45.781 +0000 UTC | 1 |
// | 2015-07-01 20:11:00.781 +0000 UTC | 1 |
// +-----------------------------------+--------------------------------------------------------------+
//
//
//
// Frame[1] {
// "type": "timeseries-multi",
// "typeVersion": [
// 0,
// 0
// ],
// "custom": {
// "resultType": "matrix"
// }
// }
// Name:
// Dimensions: 2 Fields by 3 Rows
// +-----------------------------------+--------------------------------------------------------+
// | Name: Time | Name: Value |
// | Labels: | Labels: __name__=up, instance=localhost:9091, job=node |
// | Type: []time.Time | Type: []float64 |
// +-----------------------------------+--------------------------------------------------------+
// | 2015-07-01 20:10:30.781 +0000 UTC | 0 |
// | 2015-07-01 20:10:45.781 +0000 UTC | 0 |
// | 2015-07-01 20:11:00.781 +0000 UTC | 1 |
// +-----------------------------------+--------------------------------------------------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"meta": {
"type": "timeseries-multi",
"typeVersion": [
0,
0
],
"custom": {
"resultType": "matrix"
}
},
"fields": [
{
"name": "Time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
}
},
{
"name": "Value",
"type": "number",
"typeInfo": {
"frame": "float64"
},
"labels": {
"__name__": "up",
"instance": "localhost:9090",
"job": "prometheus"
}
}
]
},
"data": {
"values": [
[
1435781430781,
1435781445781,
1435781460781
],
[
1,
1,
1
]
]
}
},
{
"schema": {
"meta": {
"type": "timeseries-multi",
"typeVersion": [
0,
0
],
"custom": {
"resultType": "matrix"
}
},
"fields": [
{
"name": "Time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
}
},
{
"name": "Value",
"type": "number",
"typeInfo": {
"frame": "float64"
},
"labels": {
"__name__": "up",
"instance": "localhost:9091",
"job": "node"
}
}
]
},
"data": {
"values": [
[
1435781430781,
1435781445781,
1435781460781
],
[
0,
0,
1
]
]
}
}
]
}