loki: generate dataplane-compliant logs dataframes (behind feature flag) (#69909)
* add feature flag * prepare tests * enable dataplane-format in loki-backend
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "type": "timeseries-multi",
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 1
|
||||
// ],
|
||||
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
|
||||
// }
|
||||
// Name:
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-----------------------------------+------------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: level=error, location=moon |
|
||||
// | Type: []time.Time | Type: []float64 |
|
||||
// +-----------------------------------+------------------------------------+
|
||||
// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 |
|
||||
// | 2021-12-10 08:36:46.989 +0000 UTC | 0.2 |
|
||||
// | 2021-12-10 08:36:56.989 +0000 UTC | 0.2 |
|
||||
// | 2021-12-10 08:37:46.989 +0000 UTC | 0.6 |
|
||||
// +-----------------------------------+------------------------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1] {
|
||||
// "type": "timeseries-multi",
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 1
|
||||
// ],
|
||||
// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
|
||||
// }
|
||||
// Name:
|
||||
// Dimensions: 2 Fields by 5 Rows
|
||||
// +-----------------------------------+-----------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: level=info, location=mars |
|
||||
// | Type: []time.Time | Type: []float64 |
|
||||
// +-----------------------------------+-----------------------------------+
|
||||
// | 2021-12-10 08:36:26.989 +0000 UTC | 0.6 |
|
||||
// | 2021-12-10 08:36:36.989 +0000 UTC | 0.8 |
|
||||
// | 2021-12-10 08:36:46.989 +0000 UTC | 0.8 |
|
||||
// | 2021-12-10 08:36:56.989 +0000 UTC | 0.8 |
|
||||
// | 2021-12-10 08:37:56.989 +0000 UTC | 2.6 |
|
||||
// +-----------------------------------+-----------------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"meta": {
|
||||
"type": "timeseries-multi",
|
||||
"typeVersion": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
},
|
||||
"config": {
|
||||
"interval": 42000
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64"
|
||||
},
|
||||
"labels": {
|
||||
"level": "error",
|
||||
"location": "moon"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "{level=\"error\", location=\"moon\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1639125366989,
|
||||
1639125406989,
|
||||
1639125416989,
|
||||
1639125466989
|
||||
],
|
||||
[
|
||||
0.4,
|
||||
0.2,
|
||||
0.2,
|
||||
0.6
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"meta": {
|
||||
"type": "timeseries-multi",
|
||||
"typeVersion": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"executedQueryString": "Expr: up(ALERTS)\nStep: 42s"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
},
|
||||
"config": {
|
||||
"interval": 42000
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64"
|
||||
},
|
||||
"labels": {
|
||||
"level": "info",
|
||||
"location": "mars"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "{level=\"info\", location=\"mars\"}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1639125386989,
|
||||
1639125396989,
|
||||
1639125406989,
|
||||
1639125416989,
|
||||
1639125476989
|
||||
],
|
||||
[
|
||||
0.6,
|
||||
0.8,
|
||||
0.8,
|
||||
0.8,
|
||||
2.6
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user