Use influxDB with appgyver


I need to access data from influxDB by its API.

I saw here that I needed to use “Create record(POST)” in data configurator after set up “base” configuration.

where I am ? , see below :

I know that this curl query works :

curl --request POST \  \
  --header 'Authorization: Token ***MyToken***' \
  --header 'Accept: application/csv' \
  --header 'Content-type: application/vnd.flux' \
  --data 'from(bucket:"myBucket")
        |> range(start: -12h)                                        
        |> filter(fn: (r) => r._measurement == "myData")'

it returns a csv flux

(an other issue ^^)

See my config which returns “OK”

If I put headers, I have errors :

Where could I put my headers and query to obtain my csv data ?


self answered.

No possibility to use appgyver with influxDb.
The first want only JSON, the second explain that json consume too much process time and serve only csv.

I used an other “backend” service : grafana.