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,112 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "type": "log-lines",
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "executedQueryString": "Expr: query1"
|
||||
// }
|
||||
// Name:
|
||||
// Dimensions: 4 Fields by 4 Rows
|
||||
// +------------------------------------------------+-------------------------------+----------------+------------------------------+
|
||||
// | Name: attributes | Name: timestamp | Name: body | Name: id |
|
||||
// | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string |
|
||||
// +------------------------------------------------+-------------------------------+----------------+------------------------------+
|
||||
// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:51 +0000 UTC | "hello1 | 1655448591000000000_44cbf4ec |
|
||||
// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:54 +0000 UTC | "hello4 | 1655448594000000000_408b3f5b |
|
||||
// | {"place":"moon","text":"hello3"} | 2022-06-17 06:49:52 +0000 UTC | text=hello2 | 1655448592000000000_d1b2086 |
|
||||
// | {"place":"moon","text":"hello4"} | 2022-06-17 06:49:53 +0000 UTC | text=hello3 | 1655448593000000000_45714922 |
|
||||
// +------------------------------------------------+-------------------------------+----------------+------------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"meta": {
|
||||
"type": "log-lines",
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"executedQueryString": "Expr: query1"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "attributes",
|
||||
"type": "other",
|
||||
"typeInfo": {
|
||||
"frame": "json.RawMessage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "timestamp",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
{
|
||||
"__error__": "LogfmtParserErr",
|
||||
"place": "moon"
|
||||
},
|
||||
{
|
||||
"__error__": "LogfmtParserErr",
|
||||
"place": "moon"
|
||||
},
|
||||
{
|
||||
"place": "moon",
|
||||
"text": "hello3"
|
||||
},
|
||||
{
|
||||
"place": "moon",
|
||||
"text": "hello4"
|
||||
}
|
||||
],
|
||||
[
|
||||
1655448591000,
|
||||
1655448594000,
|
||||
1655448592000,
|
||||
1655448593000
|
||||
],
|
||||
[
|
||||
"\"hello1",
|
||||
"\"hello4",
|
||||
"text=hello2",
|
||||
"text=hello3"
|
||||
],
|
||||
[
|
||||
"1655448591000000000_44cbf4ec",
|
||||
"1655448594000000000_408b3f5b",
|
||||
"1655448592000000000_d1b2086",
|
||||
"1655448593000000000_45714922"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user