I am trying to get jmeter data from influx using influxdb-client python library. I want to know what should be the value of "v" in below query

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

  1. What should be the value of v.timerangestart, v.timerangeend, v.windowperiod

Hello @Sangeeta_Agarwal
Your range function should include your start and stop times. Right now you’re using dashboard variables but you can use whatever times you want instead:

v.windowPeriod is also a dashboard variable. Replace it with how often you want to be windowing your data and calculating a sum over those windows for.

Thank you. I will try the above solution

@Sangeeta_Agarwal,
Thank you! Let me know! :slight_smile: Also what are you using InfluxDB for?