from(bucket: “${buckets}”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“application”] == “${application}”)
|> filter(fn: (r) => r[“_field”] == “count”)
|> filter(fn: (r) => r[“_measurement”] == “${measurement_name}”)
|> filter(fn: (r) => r[“transaction”] == “${transaction}”)
|> filter(fn: (r) => r[“statut”] == “all”)
|> aggregateWindow(every: v.windowPeriod, fn: sum, createEmpty: false)
|> yield(name: “sum”)
The above query when used in grafana yields only 1 value. so I want answer to 2 questions
- What should be the value of v.timerangestart, v.timerangeend, v.windowperiod