List field values datatype

according to the manual page Flux InfluxDB schema package | InfluxDB Cloud Documentation you can get info about the schema of Buckets Measurements etc.

Is there a command to list all fields datatype in Chronograf ? Like
Field1 | Bool
Field2 | Integer
Field3 | String
Field4 | Real
Field5 | Real

So something like below

import "influxdata/influxdb/schema"

  bucket: "example-bucket",
  measurement: "example-measurement",
  start: -30d

Or are there other possibilities to unravel the data type

for sure there will be more ways. i am not using it, but i know there is a header comment in my exports

/usr/bin/docker container exec dck_influxdb influx query --skip-verify -c default ’ from(bucket: “hemichromis”) |> range(start: -1y, stop: now()) |> filter(fn: (r) => r["_measurement"] == “battery_adc”) ’ --raw > 2021_05_06_hemichromis_battery_adc_1y_now.csv


ps: you can also see that via UI in ViewRawData

1 Like

I did some testing with the raw

Integer values are listed as long, floats as double.

I searched with google, and in V1.2 there was a command SHOW FIELD KEYS like the picture below