influxdb & grafana query errors

Recommended Posts

As a newbie , I  trying to  create a dashboard in grafana. I have influxdb running , bucket installed and showing in grafana .  I am able to create a graph in Influxdb not not in grafana using the Influxdb script. 

" invalid: compilation failed: error @2:4-2:66: expected comma in property list, got COLON error @2:47-2:65: missing property key"

my script :

from(bucket: "nodered") |> range(start: 2022-07-07T10:01:59.594Z. stop: v. timeRnageStop) |> filter(fn: (r) => r["_measurement"] == shellies/shellyem-485519C99C50/emeter/0/total" or r["_measurement"] == shellies/shellyem-485519C9BD88/emeter/0/total") |> filter(fn: (r) => r["_field"] =="value") |> aggregateWindow(every: 30s, fn: mean, createEmpty: false) |> yield(name: "mean")


Any advice or direction would be appreciated.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.