InfluxDB: Flux: Improve handling of complex response-structures (#33823)

This commit is contained in:
Gábor Farkas
2021-05-11 12:36:04 +02:00
committed by GitHub
parent d2a1b8fd95
commit 2633f245ba
18 changed files with 471 additions and 288 deletions
+8
View File
@@ -0,0 +1,8 @@
#group,false,false,true,true,true,true,false,false,false,true,true
#datatype,string,long,string,string,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string
#default,_result,,,,,,,,,,
,result,table,_field,_measurement,_start,_stop,_time,_time2,_value,cpu,host
,,0,usage_guest,cpu,2021-05-08T14:59:57Z,2021-05-08T15:00:57Z,2021-05-08T15:00:00Z,2021-05-08T15:10:00Z,0,cpu1,hst
,,1,usage_guest,cpu,2021-05-08T14:59:57Z,2021-05-08T15:00:57Z,2021-05-08T15:00:00Z,2021-05-08T15:10:00Z,0,cpu2,hst
,,2,usage_idle,cpu,2021-05-08T14:59:57Z,2021-05-08T15:00:57Z,2021-05-08T15:00:00Z,2021-05-08T15:10:00Z,98,cpu1,hst
,,3,usage_idle,cpu,2021-05-08T14:59:57Z,2021-05-08T15:00:57Z,2021-05-08T15:00:00Z,2021-05-08T15:10:00Z,99,cpu2,hst
1 #group false false true true true true false false false true true
2 #datatype string long string string dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 double string string
3 #default _result
4 result table _field _measurement _start _stop _time _time2 _value cpu host
5 0 usage_guest cpu 2021-05-08T14:59:57Z 2021-05-08T15:00:57Z 2021-05-08T15:00:00Z 2021-05-08T15:10:00Z 0 cpu1 hst
6 1 usage_guest cpu 2021-05-08T14:59:57Z 2021-05-08T15:00:57Z 2021-05-08T15:00:00Z 2021-05-08T15:10:00Z 0 cpu2 hst
7 2 usage_idle cpu 2021-05-08T14:59:57Z 2021-05-08T15:00:57Z 2021-05-08T15:00:00Z 2021-05-08T15:10:00Z 98 cpu1 hst
8 3 usage_idle cpu 2021-05-08T14:59:57Z 2021-05-08T15:00:57Z 2021-05-08T15:00:00Z 2021-05-08T15:10:00Z 99 cpu2 hst