Hello,
I try to write and read in InfluxDB2 data like
{"id": 1,
"lon": 39.031702,
"lat": 125.754254,
"params": {
"ready": true,
"sensor": 42
}
I haven’t found a way to do this through the telegraph (line protocol) or anything else.
How to write and query data with type record?
srbp
2
sample from command line csv import:
/usr/bin/docker container exec -i -t dck_influxdb influx write --skip-verify -c default -b your_bucket -f /var/lib/influxdb2/data_file.csv --header “#constant measurement,your_measurement” --header “#datatype tag,tag,tag,tag,integer”
your_csv_structure:
#tag,tag,tag,tag,field (choose your type: strings, floats, integers, or booleans)
id,lon,lat,ready,sensor
1,39.031702,125.754254,true,42