mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: InlfuxDB testing update (#78663)
* Prepare the test files * use json files everywhere * update golden json files * disable update * update test file * fix naming * lint * InfluxDB: Add metadata information to first frame only (#78664) * executedString in first frame only * lint * fix tests * update tests * don't update * linting * update * update again
This commit is contained in:
parent
2b51f0e263
commit
23c7211f1d
@ -223,6 +223,12 @@ func transformRowsForTimeSeries(rows []models.Row, query models.Query) data.Fram
|
||||
continue
|
||||
}
|
||||
newFrame := newFrameWithTimeField(row, column, colIndex, query, frameName)
|
||||
if len(frames) == 0 {
|
||||
newFrame.Meta = &data.FrameMeta{
|
||||
ExecutedQueryString: query.RawQuery,
|
||||
PreferredVisualization: getVisType(query.ResultFormat),
|
||||
}
|
||||
}
|
||||
frames = append(frames, newFrame)
|
||||
}
|
||||
}
|
||||
@ -286,7 +292,7 @@ func newFrameWithTimeField(row models.Row, column string, colIndex int, query mo
|
||||
|
||||
name := string(formatFrameName(row, column, query, frameName[:]))
|
||||
valueField.SetConfig(&data.FieldConfig{DisplayNameFromDS: name})
|
||||
return newDataFrame(name, query.RawQuery, timeField, valueField, getVisType(query.ResultFormat))
|
||||
return data.NewFrame(name, timeField, valueField)
|
||||
}
|
||||
|
||||
func newFrameWithoutTimeField(row models.Row, query models.Query) *data.Frame {
|
||||
@ -308,16 +314,6 @@ func newFrameWithoutTimeField(row models.Row, query models.Query) *data.Frame {
|
||||
return data.NewFrame(row.Name, field)
|
||||
}
|
||||
|
||||
func newDataFrame(name string, queryString string, timeField *data.Field, valueField *data.Field, visType data.VisType) *data.Frame {
|
||||
frame := data.NewFrame(name, timeField, valueField)
|
||||
frame.Meta = &data.FrameMeta{
|
||||
ExecutedQueryString: queryString,
|
||||
PreferredVisualization: visType,
|
||||
}
|
||||
|
||||
return frame
|
||||
}
|
||||
|
||||
func formatFrameName(row models.Row, column string, query models.Query, frameName []byte) []byte {
|
||||
if query.Alias == "" {
|
||||
return buildFrameNameFromQuery(row, column, frameName, query.ResultFormat)
|
||||
|
@ -6,17 +6,15 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/grafana/grafana/pkg/tsdb/influxdb/models"
|
||||
)
|
||||
|
||||
//go:embed testdata/response.json
|
||||
//go:embed testdata/many_columns.json
|
||||
var testResponse string
|
||||
|
||||
// go test -benchmem -run=^$ -memprofile memprofile.out -count=10 -bench ^BenchmarkParseJson$ github.com/grafana/grafana/pkg/tsdb/influxdb/influxql
|
||||
// go tool pprof -http=localhost:9999 memprofile.out
|
||||
func BenchmarkParseJson(b *testing.B) {
|
||||
query := generateQuery(models.Query{})
|
||||
query := generateQuery("time_series", "")
|
||||
|
||||
b.ResetTimer()
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
29
pkg/tsdb/influxdb/influxql/testdata/all_values_are_null.json
vendored
Normal file
29
pkg/tsdb/influxdb/influxql/testdata/all_values_are_null.json
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
null
|
||||
],
|
||||
[
|
||||
101,
|
||||
null
|
||||
],
|
||||
[
|
||||
102,
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
76
pkg/tsdb/influxdb/influxql/testdata/all_values_are_null.table.golden.jsonc
vendored
Normal file
76
pkg/tsdb/influxdb/influxql/testdata/all_values_are_null.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: mean |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.1 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.101 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.102 +0000 UTC | null |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
76
pkg/tsdb/influxdb/influxql/testdata/all_values_are_null.time_series.golden.jsonc
vendored
Normal file
76
pkg/tsdb/influxdb/influxql/testdata/all_values_are_null.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.mean
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.1 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.101 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.102 +0000 UTC | null |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
7
pkg/tsdb/influxdb/influxql/testdata/empty_response.json
vendored
Normal file
7
pkg/tsdb/influxdb/influxql/testdata/empty_response.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0
|
||||
}
|
||||
]
|
||||
}
|
6
pkg/tsdb/influxdb/influxql/testdata/empty_response.table.golden.jsonc
vendored
Normal file
6
pkg/tsdb/influxdb/influxql/testdata/empty_response.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": []
|
||||
}
|
6
pkg/tsdb/influxdb/influxql/testdata/empty_response.time_series.golden.jsonc
vendored
Normal file
6
pkg/tsdb/influxdb/influxql/testdata/empty_response.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": []
|
||||
}
|
3
pkg/tsdb/influxdb/influxql/testdata/error_on_top_level_response.json
vendored
Normal file
3
pkg/tsdb/influxdb/influxql/testdata/error_on_top_level_response.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"error": "error parsing query: found THING"
|
||||
}
|
7
pkg/tsdb/influxdb/influxql/testdata/error_response.json
vendored
Normal file
7
pkg/tsdb/influxdb/influxql/testdata/error_response.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"error": "query-timeout limit exceeded"
|
||||
}
|
||||
]
|
||||
}
|
33
pkg/tsdb/influxdb/influxql/testdata/invalid_timestamp_format.json
vendored
Normal file
33
pkg/tsdb/influxdb/influxql/testdata/invalid_timestamp_format.json
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
50
|
||||
],
|
||||
[
|
||||
"hello",
|
||||
51
|
||||
],
|
||||
[
|
||||
"hello",
|
||||
"hello"
|
||||
],
|
||||
[
|
||||
102,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
29
pkg/tsdb/influxdb/influxql/testdata/invalid_value_format.json
vendored
Normal file
29
pkg/tsdb/influxdb/influxql/testdata/invalid_value_format.json
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
50
|
||||
],
|
||||
[
|
||||
101,
|
||||
"hello"
|
||||
],
|
||||
[
|
||||
102,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
76
pkg/tsdb/influxdb/influxql/testdata/invalid_value_format.table.golden.jsonc
vendored
Normal file
76
pkg/tsdb/influxdb/influxql/testdata/invalid_value_format.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: mean |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.1 +0000 UTC | 50 |
|
||||
// | 1970-01-01 00:00:00.101 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.102 +0000 UTC | 52 |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
50,
|
||||
null,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
76
pkg/tsdb/influxdb/influxql/testdata/invalid_value_format.time_series.golden.jsonc
vendored
Normal file
76
pkg/tsdb/influxdb/influxql/testdata/invalid_value_format.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.mean
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.1 +0000 UTC | 50 |
|
||||
// | 1970-01-01 00:00:00.101 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.102 +0000 UTC | 52 |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
50,
|
||||
null,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
1
pkg/tsdb/influxdb/influxql/testdata/many_columns.json
vendored
Normal file
1
pkg/tsdb/influxdb/influxql/testdata/many_columns.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"results":[{"statement_id":0,"series":[{"name":"series_name","tags":{"series_tag_1":"-248","series_tag_2":"3167640"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"589051IR",1678734134503,"",16.726718841369227,null,null,53,null,48.72,null,null,null,null,"BYOD",null,null]]},{"name":"series_name","tags":{"series_tag_1":"-258","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"tertggdfs",1678734188679,"",23.432988173518233,null,null,64,null,70.92,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-28","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-28","series_tag_2":"2249908"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"ASDWQ234",1678734167565,"",10.772527844239201,null,null,25,null,58.33,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-327","series_tag_2":"3415374"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"123SDQWE",1678734222642,"ADSADS",40.61198862661182,null,null,33,null,51.41,null,null,null,null,"SCCM",null,null]]},{"name":"series_name","tags":{"series_tag_1":"-331","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-331","series_tag_2":"2191438"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"SDF32R",1678734212872,"",15.267734587695077,null,null,43,null,58.43,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"0","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"00-00-00-08-1E-0C","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]}]}]}
|
7510
pkg/tsdb/influxdb/influxql/testdata/many_columns.time_series.golden.jsonc
vendored
Normal file
7510
pkg/tsdb/influxdb/influxql/testdata/many_columns.time_series.golden.jsonc
vendored
Normal file
File diff suppressed because it is too large
Load Diff
29
pkg/tsdb/influxdb/influxql/testdata/measurements.json
vendored
Normal file
29
pkg/tsdb/influxdb/influxql/testdata/measurements.json
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "measurements",
|
||||
"columns": [
|
||||
"name"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
"cpu"
|
||||
],
|
||||
[
|
||||
"disk"
|
||||
],
|
||||
[
|
||||
"diskio"
|
||||
],
|
||||
[
|
||||
"kernel"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
66
pkg/tsdb/influxdb/influxql/testdata/measurements.table.golden.jsonc
vendored
Normal file
66
pkg/tsdb/influxdb/influxql/testdata/measurements.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: measurements
|
||||
// Dimensions: 1 Fields by 4 Rows
|
||||
// +-----------------+
|
||||
// | Name: name |
|
||||
// | Labels: |
|
||||
// | Type: []*string |
|
||||
// +-----------------+
|
||||
// | cpu |
|
||||
// | disk |
|
||||
// | diskio |
|
||||
// | kernel |
|
||||
// +-----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "measurements",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "name"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"disk",
|
||||
"diskio",
|
||||
"kernel"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
47
pkg/tsdb/influxdb/influxql/testdata/measurements.time_series.golden.jsonc
vendored
Normal file
47
pkg/tsdb/influxdb/influxql/testdata/measurements.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0]
|
||||
// Name: measurements
|
||||
// Dimensions: 1 Fields by 4 Rows
|
||||
// +----------------+
|
||||
// | Name: Value |
|
||||
// | Labels: |
|
||||
// | Type: []string |
|
||||
// +----------------+
|
||||
// | cpu |
|
||||
// | disk |
|
||||
// | diskio |
|
||||
// | kernel |
|
||||
// +----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "measurements",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"disk",
|
||||
"diskio",
|
||||
"kernel"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
47
pkg/tsdb/influxdb/influxql/testdata/metric_find_queries.json
vendored
Normal file
47
pkg/tsdb/influxdb/influxql/testdata/metric_find_queries.json
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "measurements",
|
||||
"columns": [
|
||||
"name"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
"cpu"
|
||||
],
|
||||
[
|
||||
"disk"
|
||||
],
|
||||
[
|
||||
"diskio"
|
||||
],
|
||||
[
|
||||
"kernel"
|
||||
],
|
||||
[
|
||||
"logs"
|
||||
],
|
||||
[
|
||||
"mem"
|
||||
],
|
||||
[
|
||||
"myMeasurement"
|
||||
],
|
||||
[
|
||||
"processes"
|
||||
],
|
||||
[
|
||||
"swap"
|
||||
],
|
||||
[
|
||||
"system"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
78
pkg/tsdb/influxdb/influxql/testdata/metric_find_queries.table.golden.jsonc
vendored
Normal file
78
pkg/tsdb/influxdb/influxql/testdata/metric_find_queries.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: measurements
|
||||
// Dimensions: 1 Fields by 10 Rows
|
||||
// +-----------------+
|
||||
// | Name: name |
|
||||
// | Labels: |
|
||||
// | Type: []*string |
|
||||
// +-----------------+
|
||||
// | cpu |
|
||||
// | disk |
|
||||
// | diskio |
|
||||
// | kernel |
|
||||
// | logs |
|
||||
// | mem |
|
||||
// | myMeasurement |
|
||||
// | processes |
|
||||
// | swap |
|
||||
// | system |
|
||||
// +-----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "measurements",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "name"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"disk",
|
||||
"diskio",
|
||||
"kernel",
|
||||
"logs",
|
||||
"mem",
|
||||
"myMeasurement",
|
||||
"processes",
|
||||
"swap",
|
||||
"system"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
59
pkg/tsdb/influxdb/influxql/testdata/metric_find_queries.time_series.golden.jsonc
vendored
Normal file
59
pkg/tsdb/influxdb/influxql/testdata/metric_find_queries.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0]
|
||||
// Name: measurements
|
||||
// Dimensions: 1 Fields by 10 Rows
|
||||
// +----------------+
|
||||
// | Name: Value |
|
||||
// | Labels: |
|
||||
// | Type: []string |
|
||||
// +----------------+
|
||||
// | cpu |
|
||||
// | disk |
|
||||
// | diskio |
|
||||
// | kernel |
|
||||
// | logs |
|
||||
// | mem |
|
||||
// | myMeasurement |
|
||||
// | processes |
|
||||
// | swap |
|
||||
// | system |
|
||||
// +----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "measurements",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"disk",
|
||||
"diskio",
|
||||
"kernel",
|
||||
"logs",
|
||||
"mem",
|
||||
"myMeasurement",
|
||||
"processes",
|
||||
"swap",
|
||||
"system"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
40
pkg/tsdb/influxdb/influxql/testdata/multiple_measurements.json
vendored
Normal file
40
pkg/tsdb/influxdb/influxql/testdata/multiple_measurements.json
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu.upc",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"tags": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
222
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "logins.count",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"tags": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
222
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
88
pkg/tsdb/influxdb/influxql/testdata/multiple_measurements.table.golden.jsonc
vendored
Normal file
88
pkg/tsdb/influxdb/influxql/testdata/multiple_measurements.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,88 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.upc
|
||||
// Dimensions: 3 Fields by 2 Rows
|
||||
// +-----------------------------------+------------------+------------------+
|
||||
// | Name: Time | Name: datacenter | Name: mean |
|
||||
// | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | America | 222 |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | America | 222 |
|
||||
// +-----------------------------------+------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "datacenter",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "datacenter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
111
|
||||
],
|
||||
[
|
||||
"America",
|
||||
"America"
|
||||
],
|
||||
[
|
||||
222,
|
||||
222
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
124
pkg/tsdb/influxdb/influxql/testdata/multiple_measurements.time_series.golden.jsonc
vendored
Normal file
124
pkg/tsdb/influxdb/influxql/testdata/multiple_measurements.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.upc.mean { datacenter: America }
|
||||
// Dimensions: 2 Fields by 1 Rows
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: datacenter=America |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 222 |
|
||||
// +-----------------------------------+----------------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: logins.count.mean { datacenter: America }
|
||||
// Dimensions: 2 Fields by 1 Rows
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: datacenter=America |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 222 |
|
||||
// +-----------------------------------+----------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc.mean { datacenter: America }",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.upc.mean { datacenter: America }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
222
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "logins.count.mean { datacenter: America }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "logins.count.mean { datacenter: America }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
222
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
149
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags.json
vendored
Normal file
149
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags.json
vendored
Normal file
@ -0,0 +1,149 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu-total"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.06919189833442
|
||||
],
|
||||
[
|
||||
1700047200000,
|
||||
99.13105510262923
|
||||
],
|
||||
[
|
||||
1700048400000,
|
||||
98.99236330721192
|
||||
],
|
||||
[
|
||||
1700049600000,
|
||||
98.80510091380069
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu0"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.01372119142576
|
||||
],
|
||||
[
|
||||
1700047200000,
|
||||
99.00430308480553
|
||||
],
|
||||
[
|
||||
1700048400000,
|
||||
98.9737996641964
|
||||
],
|
||||
[
|
||||
1700049600000,
|
||||
98.79638916754935
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu1"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.04949983158023
|
||||
],
|
||||
[
|
||||
1700047200000,
|
||||
99.06989461231551
|
||||
],
|
||||
[
|
||||
1700048400000,
|
||||
98.97954813782476
|
||||
],
|
||||
[
|
||||
1700049600000,
|
||||
98.49246231161365
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu2"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.11296419686643
|
||||
],
|
||||
[
|
||||
1700047200000,
|
||||
99.01817278917116
|
||||
],
|
||||
[
|
||||
1700048400000,
|
||||
98.96847021232013
|
||||
],
|
||||
[
|
||||
1700049600000,
|
||||
98.192771084406
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu3"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.0742704326151
|
||||
],
|
||||
[
|
||||
1700047200000,
|
||||
99.17835628293322
|
||||
],
|
||||
[
|
||||
1700048400000,
|
||||
98.98968994907334
|
||||
],
|
||||
[
|
||||
1700049600000,
|
||||
98.69215291745849
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
150
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags.table.golden.jsonc
vendored
Normal file
150
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,150 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 3 Fields by 20 Rows
|
||||
// +-------------------------------+-----------------+-------------------+
|
||||
// | Name: Time | Name: cpu | Name: mean |
|
||||
// | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*float64 |
|
||||
// +-------------------------------+-----------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu-total | 99.06919189833442 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | cpu-total | 99.13105510262923 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | cpu-total | 98.99236330721192 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | cpu-total | 98.80510091380069 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu0 | 99.01372119142576 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | cpu0 | 99.00430308480553 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | cpu0 | 98.9737996641964 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | cpu0 | 98.79638916754935 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu1 | 99.04949983158023 |
|
||||
// | ... | ... | ... |
|
||||
// +-------------------------------+-----------------+-------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000,
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000,
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000,
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000,
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
"cpu-total",
|
||||
"cpu-total",
|
||||
"cpu-total",
|
||||
"cpu-total",
|
||||
"cpu0",
|
||||
"cpu0",
|
||||
"cpu0",
|
||||
"cpu0",
|
||||
"cpu1",
|
||||
"cpu1",
|
||||
"cpu1",
|
||||
"cpu1",
|
||||
"cpu2",
|
||||
"cpu2",
|
||||
"cpu2",
|
||||
"cpu2",
|
||||
"cpu3",
|
||||
"cpu3",
|
||||
"cpu3",
|
||||
"cpu3"
|
||||
],
|
||||
[
|
||||
99.06919189833442,
|
||||
99.13105510262923,
|
||||
98.99236330721192,
|
||||
98.80510091380069,
|
||||
99.01372119142576,
|
||||
99.00430308480553,
|
||||
98.9737996641964,
|
||||
98.79638916754935,
|
||||
99.04949983158023,
|
||||
99.06989461231551,
|
||||
98.97954813782476,
|
||||
98.49246231161365,
|
||||
99.11296419686643,
|
||||
99.01817278917116,
|
||||
98.96847021232013,
|
||||
98.192771084406,
|
||||
99.0742704326151,
|
||||
99.17835628293322,
|
||||
98.98968994907334,
|
||||
98.69215291745849
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
322
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags.time_series.golden.jsonc
vendored
Normal file
322
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,322 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.mean { cpu: cpu-total }
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-----------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: cpu=cpu-total |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-----------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.06919189833442 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.13105510262923 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.99236330721192 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.80510091380069 |
|
||||
// +-------------------------------+-----------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: cpu.mean { cpu: cpu0 }
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: cpu=cpu0 |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.01372119142576 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.00430308480553 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.9737996641964 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.79638916754935 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[2]
|
||||
// Name: cpu.mean { cpu: cpu1 }
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: cpu=cpu1 |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.04949983158023 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.06989461231551 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.97954813782476 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.49246231161365 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[3]
|
||||
// Name: cpu.mean { cpu: cpu2 }
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: cpu=cpu2 |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.11296419686643 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.01817278917116 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.96847021232013 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.192771084406 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[4]
|
||||
// Name: cpu.mean { cpu: cpu3 }
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: cpu=cpu3 |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.0742704326151 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.17835628293322 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.98968994907334 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.69215291745849 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean { cpu: cpu-total }",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"cpu": "cpu-total"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean { cpu: cpu-total }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.06919189833442,
|
||||
99.13105510262923,
|
||||
98.99236330721192,
|
||||
98.80510091380069
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean { cpu: cpu0 }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"cpu": "cpu0"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean { cpu: cpu0 }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.01372119142576,
|
||||
99.00430308480553,
|
||||
98.9737996641964,
|
||||
98.79638916754935
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean { cpu: cpu1 }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"cpu": "cpu1"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean { cpu: cpu1 }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.04949983158023,
|
||||
99.06989461231551,
|
||||
98.97954813782476,
|
||||
98.49246231161365
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean { cpu: cpu2 }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"cpu": "cpu2"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean { cpu: cpu2 }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.11296419686643,
|
||||
99.01817278917116,
|
||||
98.96847021232013,
|
||||
98.192771084406
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean { cpu: cpu3 }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"cpu": "cpu3"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean { cpu: cpu3 }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.0742704326151,
|
||||
99.17835628293322,
|
||||
98.98968994907334,
|
||||
98.69215291745849
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
273
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags_and_multiple_columns.json
vendored
Normal file
273
pkg/tsdb/influxdb/influxql/testdata/multiple_series_with_tags_and_multiple_columns.json
vendored
Normal file
@ -0,0 +1,273 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu-total"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.06348570053983,
|
||||
97.3214285712978,
|
||||
99.2066680055868,
|
||||
99.24812030075188,
|
||||
99.31809065366402
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu0"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
98.99671817733766,
|
||||
96.65991902847126,
|
||||
99.29364278499536,
|
||||
99.29718875523953,
|
||||
99.59839357421622
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu1"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.03148357927465,
|
||||
96.67673715996412,
|
||||
99.39698492464545,
|
||||
99.39759036146867,
|
||||
99.59798994966731
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu2"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.03087433486812,
|
||||
96.03658536600605,
|
||||
99.29859719431953,
|
||||
99.39759036146867,
|
||||
99.59879638908582
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu3"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.0796957137731,
|
||||
97.37903225797402,
|
||||
99.39698492464723,
|
||||
99.39879759521435,
|
||||
99.4984954865762
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu4"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.09573460946685,
|
||||
97.57330637016123,
|
||||
99.39759036146867,
|
||||
99.49698189117252,
|
||||
99.59839357450608
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu5"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.0690883079725,
|
||||
96.65991902847126,
|
||||
99.39698492464545,
|
||||
99.39819458377468,
|
||||
99.59798994995865
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu6"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.06475215715605,
|
||||
97.37108190081956,
|
||||
99.39698492464545,
|
||||
99.39879759521259,
|
||||
99.69879518073434
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu7"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.06204005079694,
|
||||
97.7596741344093,
|
||||
99.39637826964127,
|
||||
99.39759036147042,
|
||||
99.59879638908698
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu8"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.0999818796052,
|
||||
96.56565656568982,
|
||||
99.39698492464723,
|
||||
99.39819458377468,
|
||||
99.59758551299777
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"tags": {
|
||||
"cpu": "cpu9"
|
||||
},
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"min",
|
||||
"p90",
|
||||
"p95",
|
||||
"max"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.10477313534511,
|
||||
96.8463886063268,
|
||||
99.39759036146867,
|
||||
99.39819458377468,
|
||||
99.59839357421622
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,219 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 7 Fields by 11 Rows
|
||||
// +-------------------------------+-----------------+-------------------+-------------------+-------------------+-------------------+-------------------+
|
||||
// | Name: Time | Name: cpu | Name: mean | Name: min | Name: p90 | Name: p95 | Name: max |
|
||||
// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 |
|
||||
// +-------------------------------+-----------------+-------------------+-------------------+-------------------+-------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu-total | 99.06348570053983 | 97.3214285712978 | 99.2066680055868 | 99.24812030075188 | 99.31809065366402 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu0 | 98.99671817733766 | 96.65991902847126 | 99.29364278499536 | 99.29718875523953 | 99.59839357421622 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu1 | 99.03148357927465 | 96.67673715996412 | 99.39698492464545 | 99.39759036146867 | 99.59798994966731 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu2 | 99.03087433486812 | 96.03658536600605 | 99.29859719431953 | 99.39759036146867 | 99.59879638908582 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu3 | 99.0796957137731 | 97.37903225797402 | 99.39698492464723 | 99.39879759521435 | 99.4984954865762 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu4 | 99.09573460946685 | 97.57330637016123 | 99.39759036146867 | 99.49698189117252 | 99.59839357450608 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu5 | 99.0690883079725 | 96.65991902847126 | 99.39698492464545 | 99.39819458377468 | 99.59798994995865 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu6 | 99.06475215715605 | 97.37108190081956 | 99.39698492464545 | 99.39879759521259 | 99.69879518073434 |
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | cpu7 | 99.06204005079694 | 97.7596741344093 | 99.39637826964127 | 99.39759036147042 | 99.59879638908698 |
|
||||
// | ... | ... | ... | ... | ... | ... | ... |
|
||||
// +-------------------------------+-----------------+-------------------+-------------------+-------------------+-------------------+-------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "min",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "min"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "p90",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "p90"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "p95",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "p95"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "max",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "max"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000,
|
||||
1700046000000
|
||||
],
|
||||
[
|
||||
"cpu-total",
|
||||
"cpu0",
|
||||
"cpu1",
|
||||
"cpu2",
|
||||
"cpu3",
|
||||
"cpu4",
|
||||
"cpu5",
|
||||
"cpu6",
|
||||
"cpu7",
|
||||
"cpu8",
|
||||
"cpu9"
|
||||
],
|
||||
[
|
||||
99.06348570053983,
|
||||
98.99671817733766,
|
||||
99.03148357927465,
|
||||
99.03087433486812,
|
||||
99.0796957137731,
|
||||
99.09573460946685,
|
||||
99.0690883079725,
|
||||
99.06475215715605,
|
||||
99.06204005079694,
|
||||
99.0999818796052,
|
||||
99.10477313534511
|
||||
],
|
||||
[
|
||||
97.3214285712978,
|
||||
96.65991902847126,
|
||||
96.67673715996412,
|
||||
96.03658536600605,
|
||||
97.37903225797402,
|
||||
97.57330637016123,
|
||||
96.65991902847126,
|
||||
97.37108190081956,
|
||||
97.7596741344093,
|
||||
96.56565656568982,
|
||||
96.8463886063268
|
||||
],
|
||||
[
|
||||
99.2066680055868,
|
||||
99.29364278499536,
|
||||
99.39698492464545,
|
||||
99.29859719431953,
|
||||
99.39698492464723,
|
||||
99.39759036146867,
|
||||
99.39698492464545,
|
||||
99.39698492464545,
|
||||
99.39637826964127,
|
||||
99.39698492464723,
|
||||
99.39759036146867
|
||||
],
|
||||
[
|
||||
99.24812030075188,
|
||||
99.29718875523953,
|
||||
99.39759036146867,
|
||||
99.39759036146867,
|
||||
99.39879759521435,
|
||||
99.49698189117252,
|
||||
99.39819458377468,
|
||||
99.39879759521259,
|
||||
99.39759036147042,
|
||||
99.39819458377468,
|
||||
99.39819458377468
|
||||
],
|
||||
[
|
||||
99.31809065366402,
|
||||
99.59839357421622,
|
||||
99.59798994966731,
|
||||
99.59879638908582,
|
||||
99.4984954865762,
|
||||
99.59839357450608,
|
||||
99.59798994995865,
|
||||
99.69879518073434,
|
||||
99.59879638908698,
|
||||
99.59758551299777,
|
||||
99.59839357421622
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
34
pkg/tsdb/influxdb/influxql/testdata/one_measurement_with_two_columns.json
vendored
Normal file
34
pkg/tsdb/influxdb/influxql/testdata/one_measurement_with_two_columns.json
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
99.0693929754458
|
||||
],
|
||||
[
|
||||
1700047200000,
|
||||
99.13073313839024
|
||||
],
|
||||
[
|
||||
1700048400000,
|
||||
98.99278645182834
|
||||
],
|
||||
[
|
||||
1700049600000,
|
||||
98.77818123433566
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
79
pkg/tsdb/influxdb/influxql/testdata/one_measurement_with_two_columns.table.golden.jsonc
vendored
Normal file
79
pkg/tsdb/influxdb/influxql/testdata/one_measurement_with_two_columns.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: mean |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.0693929754458 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.13073313839024 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.99278645182834 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.77818123433566 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.0693929754458,
|
||||
99.13073313839024,
|
||||
98.99278645182834,
|
||||
98.77818123433566
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
79
pkg/tsdb/influxdb/influxql/testdata/one_measurement_with_two_columns.time_series.golden.jsonc
vendored
Normal file
79
pkg/tsdb/influxdb/influxql/testdata/one_measurement_with_two_columns.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.mean
|
||||
// Dimensions: 2 Fields by 4 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 11:00:00 +0000 UTC | 99.0693929754458 |
|
||||
// | 2023-11-15 11:20:00 +0000 UTC | 99.13073313839024 |
|
||||
// | 2023-11-15 11:40:00 +0000 UTC | 98.99278645182834 |
|
||||
// | 2023-11-15 12:00:00 +0000 UTC | 98.77818123433566 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700046000000,
|
||||
1700047200000,
|
||||
1700048400000,
|
||||
1700049600000
|
||||
],
|
||||
[
|
||||
99.0693929754458,
|
||||
99.13073313839024,
|
||||
98.99278645182834,
|
||||
98.77818123433566
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1 +1,30 @@
|
||||
{"results":[{"statement_id":0,"series":[{"name":"series_name","tags":{"series_tag_1":"-248","series_tag_2":"3167640"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"589051IR",1678734134503,"",16.726718841369227,null,null,53,null,48.72,null,null,null,null,"BYOD",null,null]]},{"name":"series_name","tags":{"series_tag_1":"-258","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"tertggdfs",1678734188679,"",23.432988173518233,null,null,64,null,70.92,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-28","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-28","series_tag_2":"2249908"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"ASDWQ234",1678734167565,"",10.772527844239201,null,null,25,null,58.33,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-327","series_tag_2":"3415374"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"123SDQWE",1678734222642,"ADSADS",40.61198862661182,null,null,33,null,51.41,null,null,null,null,"SCCM",null,null]]},{"name":"series_name","tags":{"series_tag_1":"-331","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"-331","series_tag_2":"2191438"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,"SDF32R",1678734212872,"",15.267734587695077,null,null,43,null,58.43,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"0","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]},{"name":"series_name","tags":{"series_tag_1":"00-00-00-08-1E-0C","series_tag_2":"0"},"columns":["time","col_1_name","timestamp","c_name","mem_used","dbytes","ubytes","dused","jitter","free","late","core","ploss","idletime","sol","isp","vpn"],"values":[[1678723623474,null,null,"Unknown",null,null,null,null,null,null,null,null,null,null,null,null,null]]}]}]}
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu.upc",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"sum"
|
||||
],
|
||||
"tags": {
|
||||
"datacenter": "America",
|
||||
"dc.region.name": "Northeast",
|
||||
"cluster-name": "Cluster",
|
||||
"/cluster/name/": "Cluster/",
|
||||
"@cluster@name@": "Cluster@"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
222,
|
||||
333
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
154
pkg/tsdb/influxdb/influxql/testdata/response.table.golden.jsonc
vendored
Normal file
154
pkg/tsdb/influxdb/influxql/testdata/response.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,154 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.upc
|
||||
// Dimensions: 8 Fields by 1 Rows
|
||||
// +-----------------------------------+------------------+----------------------+--------------------+----------------------+----------------------+------------------+------------------+
|
||||
// | Name: Time | Name: datacenter | Name: dc.region.name | Name: cluster-name | Name: /cluster/name/ | Name: @cluster@name@ | Name: mean | Name: sum |
|
||||
// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*string | Type: []*string | Type: []*string | Type: []*string | Type: []*float64 | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+----------------------+--------------------+----------------------+----------------------+------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | America | Northeast | Cluster | Cluster/ | Cluster@ | 222 | 333 |
|
||||
// +-----------------------------------+------------------+----------------------+--------------------+----------------------+----------------------+------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "datacenter",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "datacenter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "dc.region.name",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "dc.region.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cluster-name",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cluster-name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "/cluster/name/",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "/cluster/name/"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "@cluster@name@",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "@cluster@name@"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sum",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "sum"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
"America"
|
||||
],
|
||||
[
|
||||
"Northeast"
|
||||
],
|
||||
[
|
||||
"Cluster"
|
||||
],
|
||||
[
|
||||
"Cluster/"
|
||||
],
|
||||
[
|
||||
"Cluster@"
|
||||
],
|
||||
[
|
||||
222
|
||||
],
|
||||
[
|
||||
333
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
124
pkg/tsdb/influxdb/influxql/testdata/response.time_series.golden.jsonc
vendored
Normal file
124
pkg/tsdb/influxdb/influxql/testdata/response.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.upc.mean { @cluster@name@: Cluster@ }
|
||||
// Dimensions: 2 Fields by 1 Rows
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: @cluster@name@=Cluster@ |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 222 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: cpu.upc.sum { @cluster@name@: Cluster@ }
|
||||
// Dimensions: 2 Fields by 1 Rows
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: @cluster@name@=Cluster@ |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 333 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc.mean { @cluster@name@: Cluster@ }",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"@cluster@name@": "Cluster@"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.upc.mean { @cluster@name@: Cluster@ }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
222
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc.sum { @cluster@name@: Cluster@ }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"@cluster@name@": "Cluster@"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.upc.sum { @cluster@name@: Cluster@ }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
333
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
40
pkg/tsdb/influxdb/influxql/testdata/response_with_nil_bools_and_nil_strings.json
vendored
Normal file
40
pkg/tsdb/influxdb/influxql/testdata/response_with_nil_bools_and_nil_strings.json
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"path",
|
||||
"isActive"
|
||||
],
|
||||
"tags": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
222,
|
||||
null,
|
||||
null
|
||||
],
|
||||
[
|
||||
111,
|
||||
222,
|
||||
"/usr/path",
|
||||
false
|
||||
],
|
||||
[
|
||||
111,
|
||||
null,
|
||||
"/usr/path",
|
||||
true
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
124
pkg/tsdb/influxdb/influxql/testdata/response_with_nil_bools_and_nil_strings.table.golden.jsonc
vendored
Normal file
124
pkg/tsdb/influxdb/influxql/testdata/response_with_nil_bools_and_nil_strings.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 5 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+------------------+-----------------+----------------+
|
||||
// | Name: Time | Name: datacenter | Name: mean | Name: path | Name: isActive |
|
||||
// | Labels: | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*float64 | Type: []*string | Type: []*bool |
|
||||
// +-----------------------------------+------------------+------------------+-----------------+----------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | America | 222 | null | null |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | America | 222 | /usr/path | false |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | America | null | /usr/path | true |
|
||||
// +-----------------------------------+------------------+------------------+-----------------+----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "datacenter",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "datacenter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "isActive",
|
||||
"type": "boolean",
|
||||
"typeInfo": {
|
||||
"frame": "bool",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "isActive"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
111,
|
||||
111
|
||||
],
|
||||
[
|
||||
"America",
|
||||
"America",
|
||||
"America"
|
||||
],
|
||||
[
|
||||
222,
|
||||
222,
|
||||
null
|
||||
],
|
||||
[
|
||||
null,
|
||||
"/usr/path",
|
||||
"/usr/path"
|
||||
],
|
||||
[
|
||||
null,
|
||||
false,
|
||||
true
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
193
pkg/tsdb/influxdb/influxql/testdata/response_with_nil_bools_and_nil_strings.time_series.golden.jsonc
vendored
Normal file
193
pkg/tsdb/influxdb/influxql/testdata/response_with_nil_bools_and_nil_strings.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,193 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.mean { datacenter: America }
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: datacenter=America |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 222 |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 222 |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | null |
|
||||
// +-----------------------------------+----------------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: cpu.path { datacenter: America }
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: datacenter=America |
|
||||
// | Type: []time.Time | Type: []*string |
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | /usr/path |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | /usr/path |
|
||||
// +-----------------------------------+----------------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[2]
|
||||
// Name: cpu.isActive { datacenter: America }
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: datacenter=America |
|
||||
// | Type: []time.Time | Type: []*bool |
|
||||
// +-----------------------------------+----------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | false |
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | true |
|
||||
// +-----------------------------------+----------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean { datacenter: America }",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean { datacenter: America }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
111,
|
||||
111
|
||||
],
|
||||
[
|
||||
222,
|
||||
222,
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.path { datacenter: America }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.path { datacenter: America }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
111,
|
||||
111
|
||||
],
|
||||
[
|
||||
null,
|
||||
"/usr/path",
|
||||
"/usr/path"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.isActive { datacenter: America }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "boolean",
|
||||
"typeInfo": {
|
||||
"frame": "bool",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"datacenter": "America"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.isActive { datacenter: America }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
111,
|
||||
111
|
||||
],
|
||||
[
|
||||
null,
|
||||
false,
|
||||
true
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
26
pkg/tsdb/influxdb/influxql/testdata/response_with_weird_tag.json
vendored
Normal file
26
pkg/tsdb/influxdb/influxql/testdata/response_with_weird_tag.json
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu.upc",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean",
|
||||
"sum"
|
||||
],
|
||||
"tags": {
|
||||
"@cluster@name@": "Cluster@"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
111,
|
||||
222,
|
||||
333
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
98
pkg/tsdb/influxdb/influxql/testdata/response_with_weird_tag.table.golden.jsonc
vendored
Normal file
98
pkg/tsdb/influxdb/influxql/testdata/response_with_weird_tag.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,98 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.upc
|
||||
// Dimensions: 4 Fields by 1 Rows
|
||||
// +-----------------------------------+----------------------+------------------+------------------+
|
||||
// | Name: Time | Name: @cluster@name@ | Name: mean | Name: sum |
|
||||
// | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*float64 | Type: []*float64 |
|
||||
// +-----------------------------------+----------------------+------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | Cluster@ | 222 | 333 |
|
||||
// +-----------------------------------+----------------------+------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "@cluster@name@",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "@cluster@name@"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sum",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "sum"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
"Cluster@"
|
||||
],
|
||||
[
|
||||
222
|
||||
],
|
||||
[
|
||||
333
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
124
pkg/tsdb/influxdb/influxql/testdata/response_with_weird_tag.time_series.golden.jsonc
vendored
Normal file
124
pkg/tsdb/influxdb/influxql/testdata/response_with_weird_tag.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.upc.mean { @cluster@name@: Cluster@ }
|
||||
// Dimensions: 2 Fields by 1 Rows
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: @cluster@name@=Cluster@ |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 222 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: cpu.upc.sum { @cluster@name@: Cluster@ }
|
||||
// Dimensions: 2 Fields by 1 Rows
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: @cluster@name@=Cluster@ |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
// | 1970-01-01 00:00:00.111 +0000 UTC | 333 |
|
||||
// +-----------------------------------+---------------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc.mean { @cluster@name@: Cluster@ }",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"@cluster@name@": "Cluster@"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.upc.mean { @cluster@name@: Cluster@ }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
222
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.upc.sum { @cluster@name@: Cluster@ }",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"labels": {
|
||||
"@cluster@name@": "Cluster@"
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.upc.sum { @cluster@name@: Cluster@ }"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
111
|
||||
],
|
||||
[
|
||||
333
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
55
pkg/tsdb/influxdb/influxql/testdata/retention_policy.json
vendored
Normal file
55
pkg/tsdb/influxdb/influxql/testdata/retention_policy.json
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"columns": [
|
||||
"name",
|
||||
"duration",
|
||||
"shardGroupDuration",
|
||||
"replicaN",
|
||||
"default"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
"default",
|
||||
"0s",
|
||||
"168h0m0s",
|
||||
1,
|
||||
true
|
||||
],
|
||||
[
|
||||
"autogen",
|
||||
"0s",
|
||||
"168h0m0s",
|
||||
1,
|
||||
false
|
||||
],
|
||||
[
|
||||
"bar",
|
||||
"0s",
|
||||
"168h0m0s",
|
||||
1,
|
||||
false
|
||||
],
|
||||
[
|
||||
"5m_avg",
|
||||
"0s",
|
||||
"168h0m0s",
|
||||
1,
|
||||
false
|
||||
],
|
||||
[
|
||||
"1m_avg",
|
||||
"0s",
|
||||
"168h0m0s",
|
||||
1,
|
||||
false
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
139
pkg/tsdb/influxdb/influxql/testdata/retention_policy.table.golden.jsonc
vendored
Normal file
139
pkg/tsdb/influxdb/influxql/testdata/retention_policy.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,139 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name:
|
||||
// Dimensions: 5 Fields by 5 Rows
|
||||
// +-----------------+-----------------+--------------------------+------------------+---------------+
|
||||
// | Name: name | Name: duration | Name: shardGroupDuration | Name: replicaN | Name: default |
|
||||
// | Labels: | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []*string | Type: []*string | Type: []*string | Type: []*float64 | Type: []*bool |
|
||||
// +-----------------+-----------------+--------------------------+------------------+---------------+
|
||||
// | default | 0s | 168h0m0s | 1 | true |
|
||||
// | autogen | 0s | 168h0m0s | 1 | false |
|
||||
// | bar | 0s | 168h0m0s | 1 | false |
|
||||
// | 5m_avg | 0s | 168h0m0s | 1 | false |
|
||||
// | 1m_avg | 0s | 168h0m0s | 1 | false |
|
||||
// +-----------------+-----------------+--------------------------+------------------+---------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duration",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "duration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "shardGroupDuration",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "shardGroupDuration"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "replicaN",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "replicaN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default",
|
||||
"type": "boolean",
|
||||
"typeInfo": {
|
||||
"frame": "bool",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "default"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"default",
|
||||
"autogen",
|
||||
"bar",
|
||||
"5m_avg",
|
||||
"1m_avg"
|
||||
],
|
||||
[
|
||||
"0s",
|
||||
"0s",
|
||||
"0s",
|
||||
"0s",
|
||||
"0s"
|
||||
],
|
||||
[
|
||||
"168h0m0s",
|
||||
"168h0m0s",
|
||||
"168h0m0s",
|
||||
"168h0m0s",
|
||||
"168h0m0s"
|
||||
],
|
||||
[
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
[
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
48
pkg/tsdb/influxdb/influxql/testdata/retention_policy.time_series.golden.jsonc
vendored
Normal file
48
pkg/tsdb/influxdb/influxql/testdata/retention_policy.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0]
|
||||
// Name:
|
||||
// Dimensions: 1 Fields by 5 Rows
|
||||
// +----------------+
|
||||
// | Name: Value |
|
||||
// | Labels: |
|
||||
// | Type: []string |
|
||||
// +----------------+
|
||||
// | default |
|
||||
// | autogen |
|
||||
// | bar |
|
||||
// | 5m_avg |
|
||||
// | 1m_avg |
|
||||
// +----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"default",
|
||||
"autogen",
|
||||
"bar",
|
||||
"5m_avg",
|
||||
"1m_avg"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
62
pkg/tsdb/influxdb/influxql/testdata/show_tag_values_response.json
vendored
Normal file
62
pkg/tsdb/influxdb/influxql/testdata/show_tag_values_response.json
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"key",
|
||||
"value"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"cpu-total"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu0"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu1"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu2"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu3"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu4"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu5"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu6"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu7"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu8"
|
||||
],
|
||||
[
|
||||
"cpu",
|
||||
"cpu9"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
103
pkg/tsdb/influxdb/influxql/testdata/show_tag_values_response.table.golden.jsonc
vendored
Normal file
103
pkg/tsdb/influxdb/influxql/testdata/show_tag_values_response.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,103 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 2 Fields by 11 Rows
|
||||
// +-----------------+-----------------+
|
||||
// | Name: key | Name: value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []*string | Type: []*string |
|
||||
// +-----------------+-----------------+
|
||||
// | cpu | cpu-total |
|
||||
// | cpu | cpu0 |
|
||||
// | cpu | cpu1 |
|
||||
// | cpu | cpu2 |
|
||||
// | cpu | cpu3 |
|
||||
// | cpu | cpu4 |
|
||||
// | cpu | cpu5 |
|
||||
// | cpu | cpu6 |
|
||||
// | cpu | cpu7 |
|
||||
// | ... | ... |
|
||||
// +-----------------+-----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "key",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "key"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "value"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu"
|
||||
],
|
||||
[
|
||||
"cpu-total",
|
||||
"cpu0",
|
||||
"cpu1",
|
||||
"cpu2",
|
||||
"cpu3",
|
||||
"cpu4",
|
||||
"cpu5",
|
||||
"cpu6",
|
||||
"cpu7",
|
||||
"cpu8",
|
||||
"cpu9"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
60
pkg/tsdb/influxdb/influxql/testdata/show_tag_values_response.time_series.golden.jsonc
vendored
Normal file
60
pkg/tsdb/influxdb/influxql/testdata/show_tag_values_response.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0]
|
||||
// Name: cpu
|
||||
// Dimensions: 1 Fields by 11 Rows
|
||||
// +----------------+
|
||||
// | Name: Value |
|
||||
// | Labels: |
|
||||
// | Type: []string |
|
||||
// +----------------+
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | cpu |
|
||||
// | ... |
|
||||
// +----------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu",
|
||||
"cpu"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
44
pkg/tsdb/influxdb/influxql/testdata/simple_response.json
vendored
Normal file
44
pkg/tsdb/influxdb/influxql/testdata/simple_response.json
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"usage_idle",
|
||||
"usage_iowait"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1700090120000,
|
||||
99.0255173802101,
|
||||
0.020092425155804713
|
||||
],
|
||||
[
|
||||
1700090120000,
|
||||
99.29718875523953,
|
||||
0
|
||||
],
|
||||
[
|
||||
1700090120000,
|
||||
99.09456740445926,
|
||||
0
|
||||
],
|
||||
[
|
||||
1700090120000,
|
||||
99.39455095864957,
|
||||
0
|
||||
],
|
||||
[
|
||||
1700090120000,
|
||||
99.09729187566201,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
100
pkg/tsdb/influxdb/influxql/testdata/simple_response.table.golden.jsonc
vendored
Normal file
100
pkg/tsdb/influxdb/influxql/testdata/simple_response.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 3 Fields by 5 Rows
|
||||
// +-------------------------------+-------------------+----------------------+
|
||||
// | Name: Time | Name: usage_idle | Name: usage_iowait |
|
||||
// | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+----------------------+
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.0255173802101 | 0.020092425155804713 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.29718875523953 | 0 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.09456740445926 | 0 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.39455095864957 | 0 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.09729187566201 | 0 |
|
||||
// +-------------------------------+-------------------+----------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "usage_idle",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "usage_idle"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "usage_iowait",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "usage_iowait"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000
|
||||
],
|
||||
[
|
||||
99.0255173802101,
|
||||
99.29718875523953,
|
||||
99.09456740445926,
|
||||
99.39455095864957,
|
||||
99.09729187566201
|
||||
],
|
||||
[
|
||||
0.020092425155804713,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
142
pkg/tsdb/influxdb/influxql/testdata/simple_response.time_series.golden.jsonc
vendored
Normal file
142
pkg/tsdb/influxdb/influxql/testdata/simple_response.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,142 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.usage_idle
|
||||
// Dimensions: 2 Fields by 5 Rows
|
||||
// +-------------------------------+-------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+-------------------+
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.0255173802101 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.29718875523953 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.09456740445926 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.39455095864957 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 99.09729187566201 |
|
||||
// +-------------------------------+-------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: cpu.usage_iowait
|
||||
// Dimensions: 2 Fields by 5 Rows
|
||||
// +-------------------------------+----------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-------------------------------+----------------------+
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 0.020092425155804713 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 0 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 0 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 0 |
|
||||
// | 2023-11-15 23:15:20 +0000 UTC | 0 |
|
||||
// +-------------------------------+----------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.usage_idle",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.usage_idle"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000
|
||||
],
|
||||
[
|
||||
99.0255173802101,
|
||||
99.29718875523953,
|
||||
99.09456740445926,
|
||||
99.39455095864957,
|
||||
99.09729187566201
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.usage_iowait",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.usage_iowait"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000,
|
||||
1700090120000
|
||||
],
|
||||
[
|
||||
0.020092425155804713,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
35
pkg/tsdb/influxdb/influxql/testdata/simple_response_with_diverse_data_types.json
vendored
Normal file
35
pkg/tsdb/influxdb/influxql/testdata/simple_response_with_diverse_data_types.json
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"statement_id": 0,
|
||||
"series": [
|
||||
{
|
||||
"name": "Annotation",
|
||||
"columns": [
|
||||
"time",
|
||||
"domain",
|
||||
"type",
|
||||
"ASD",
|
||||
"details"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
1697789142916,
|
||||
"AASD157",
|
||||
"fghg",
|
||||
null,
|
||||
"Something happened AtTime=2023-10-20T08:05:42.902036"
|
||||
],
|
||||
[
|
||||
1697789142918,
|
||||
"HUY23",
|
||||
"val23",
|
||||
null,
|
||||
"Something else happened AtTime=2023-10-20T08:05:42.902036"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
118
pkg/tsdb/influxdb/influxql/testdata/simple_response_with_diverse_data_types.table.golden.jsonc
vendored
Normal file
118
pkg/tsdb/influxdb/influxql/testdata/simple_response_with_diverse_data_types.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,118 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: Annotation
|
||||
// Dimensions: 5 Fields by 2 Rows
|
||||
// +-----------------------------------+-----------------+-----------------+------------------+-----------------------------------------------------------+
|
||||
// | Name: Time | Name: domain | Name: type | Name: ASD | Name: details |
|
||||
// | Labels: | Labels: | Labels: | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string | Type: []*string | Type: []*float64 | Type: []*string |
|
||||
// +-----------------------------------+-----------------+-----------------+------------------+-----------------------------------------------------------+
|
||||
// | 2023-10-20 08:05:42.916 +0000 UTC | AASD157 | fghg | null | Something happened AtTime=2023-10-20T08:05:42.902036 |
|
||||
// | 2023-10-20 08:05:42.918 +0000 UTC | HUY23 | val23 | null | Something else happened AtTime=2023-10-20T08:05:42.902036 |
|
||||
// +-----------------------------------+-----------------+-----------------+------------------+-----------------------------------------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "Annotation",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "domain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "type"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ASD",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "ASD"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "details",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "details"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1697789142916,
|
||||
1697789142918
|
||||
],
|
||||
[
|
||||
"AASD157",
|
||||
"HUY23"
|
||||
],
|
||||
[
|
||||
"fghg",
|
||||
"val23"
|
||||
],
|
||||
[
|
||||
null,
|
||||
null
|
||||
],
|
||||
[
|
||||
"Something happened AtTime=2023-10-20T08:05:42.902036",
|
||||
"Something else happened AtTime=2023-10-20T08:05:42.902036"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
226
pkg/tsdb/influxdb/influxql/testdata/simple_response_with_diverse_data_types.time_series.golden.jsonc
vendored
Normal file
226
pkg/tsdb/influxdb/influxql/testdata/simple_response_with_diverse_data_types.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,226 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: Annotation.domain
|
||||
// Dimensions: 2 Fields by 2 Rows
|
||||
// +-----------------------------------+-----------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string |
|
||||
// +-----------------------------------+-----------------+
|
||||
// | 2023-10-20 08:05:42.916 +0000 UTC | AASD157 |
|
||||
// | 2023-10-20 08:05:42.918 +0000 UTC | HUY23 |
|
||||
// +-----------------------------------+-----------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[1]
|
||||
// Name: Annotation.type
|
||||
// Dimensions: 2 Fields by 2 Rows
|
||||
// +-----------------------------------+-----------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string |
|
||||
// +-----------------------------------+-----------------+
|
||||
// | 2023-10-20 08:05:42.916 +0000 UTC | fghg |
|
||||
// | 2023-10-20 08:05:42.918 +0000 UTC | val23 |
|
||||
// +-----------------------------------+-----------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[2]
|
||||
// Name: Annotation.ASD
|
||||
// Dimensions: 2 Fields by 2 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 2023-10-20 08:05:42.916 +0000 UTC | null |
|
||||
// | 2023-10-20 08:05:42.918 +0000 UTC | null |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
//
|
||||
// Frame[3]
|
||||
// Name: Annotation.details
|
||||
// Dimensions: 2 Fields by 2 Rows
|
||||
// +-----------------------------------+-----------------------------------------------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*string |
|
||||
// +-----------------------------------+-----------------------------------------------------------+
|
||||
// | 2023-10-20 08:05:42.916 +0000 UTC | Something happened AtTime=2023-10-20T08:05:42.902036 |
|
||||
// | 2023-10-20 08:05:42.918 +0000 UTC | Something else happened AtTime=2023-10-20T08:05:42.902036 |
|
||||
// +-----------------------------------+-----------------------------------------------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "Annotation.domain",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "Annotation.domain"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1697789142916,
|
||||
1697789142918
|
||||
],
|
||||
[
|
||||
"AASD157",
|
||||
"HUY23"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "Annotation.type",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "Annotation.type"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1697789142916,
|
||||
1697789142918
|
||||
],
|
||||
[
|
||||
"fghg",
|
||||
"val23"
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "Annotation.ASD",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "Annotation.ASD"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1697789142916,
|
||||
1697789142918
|
||||
],
|
||||
[
|
||||
null,
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"schema": {
|
||||
"name": "Annotation.details",
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "string",
|
||||
"typeInfo": {
|
||||
"frame": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "Annotation.details"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
1697789142916,
|
||||
1697789142918
|
||||
],
|
||||
[
|
||||
"Something happened AtTime=2023-10-20T08:05:42.902036",
|
||||
"Something else happened AtTime=2023-10-20T08:05:42.902036"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
29
pkg/tsdb/influxdb/influxql/testdata/some_values_are_null.json
vendored
Normal file
29
pkg/tsdb/influxdb/influxql/testdata/some_values_are_null.json
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"series": [
|
||||
{
|
||||
"name": "cpu",
|
||||
"columns": [
|
||||
"time",
|
||||
"mean"
|
||||
],
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
null
|
||||
],
|
||||
[
|
||||
101,
|
||||
null
|
||||
],
|
||||
[
|
||||
102,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
76
pkg/tsdb/influxdb/influxql/testdata/some_values_are_null.table.golden.jsonc
vendored
Normal file
76
pkg/tsdb/influxdb/influxql/testdata/some_values_are_null.table.golden.jsonc
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "table",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: mean |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.1 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.101 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.102 +0000 UTC | 52 |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "table",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "mean",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
null,
|
||||
null,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
76
pkg/tsdb/influxdb/influxql/testdata/some_values_are_null.time_series.golden.jsonc
vendored
Normal file
76
pkg/tsdb/influxdb/influxql/testdata/some_values_are_null.time_series.golden.jsonc
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
//
|
||||
// Frame[0] {
|
||||
// "typeVersion": [
|
||||
// 0,
|
||||
// 0
|
||||
// ],
|
||||
// "preferredVisualisationType": "graph",
|
||||
// "executedQueryString": "Test raw query"
|
||||
// }
|
||||
// Name: cpu.mean
|
||||
// Dimensions: 2 Fields by 3 Rows
|
||||
// +-----------------------------------+------------------+
|
||||
// | Name: Time | Name: Value |
|
||||
// | Labels: | Labels: |
|
||||
// | Type: []time.Time | Type: []*float64 |
|
||||
// +-----------------------------------+------------------+
|
||||
// | 1970-01-01 00:00:00.1 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.101 +0000 UTC | null |
|
||||
// | 1970-01-01 00:00:00.102 +0000 UTC | 52 |
|
||||
// +-----------------------------------+------------------+
|
||||
//
|
||||
//
|
||||
// 🌟 This was machine generated. Do not edit. 🌟
|
||||
{
|
||||
"status": 200,
|
||||
"frames": [
|
||||
{
|
||||
"schema": {
|
||||
"name": "cpu.mean",
|
||||
"meta": {
|
||||
"typeVersion": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"preferredVisualisationType": "graph",
|
||||
"executedQueryString": "Test raw query"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Time",
|
||||
"type": "time",
|
||||
"typeInfo": {
|
||||
"frame": "time.Time"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Value",
|
||||
"type": "number",
|
||||
"typeInfo": {
|
||||
"frame": "float64",
|
||||
"nullable": true
|
||||
},
|
||||
"config": {
|
||||
"displayNameFromDS": "cpu.mean"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"values": [
|
||||
[
|
||||
100,
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
null,
|
||||
null,
|
||||
52
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user