I am trying to write from Grafana to Influxdb using Flux language. The part of the code responsible for the writing is shown below, where I am trying to write to existing bucket “qpu1-ops” new “_measurement”, “tag”, two “_field” - Time and PD. First I format “data”, then write it to influxdb. Could anyone let me know if I am mixing up format? Thank you!
What does your JS code look like? Without seeing it, the guidance I would offer is structuring the Flux query string as a template literal and interpolate your JS variables into the Flux template. For example:
Can you elaborate on why? I just re-read your code and noticed you don’t appear to be using the native time columns, but your own. Do you need to know a time delta between source and the time the observation was written into influxdb or something?