Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 201

InfluxDB: Issue with Time Range start from 6:30 am in 1 hour window

$
0
0

Hello Grafana Community,

I’m currently facing an issue with the time range on my Grafana dashboard. I’m using InfluxDB as my data source and Flux as my query language.

Here’s the Flux query I’m using:

from(bucket: “BF23Arm1”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“_measurement”] == “TOTAL _ DEFECT_VISUAL”)
|> filter(fn: (r) => r[“_field”] == “value”)
|> aggregateWindow(every: 1h, fn: last, createEmpty: false)
|> yield(name: “last”)

image

I want to plot the graph in 1 hr window e.g 6:00 ~ 7:00, 7:00 ~ 8:00 and so on

9 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 201

Trending Articles