In Grafana Requests per Second shows too much information

I’m trying to make use of the K6 dashboard that is available as template but when I’m using this query for representation of the Requests per Second:

from(bucket: "<bucket_name>")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "http_reqs")
  |> filter(fn: (r) => r["_field"] == "value")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "mean")

The fiels appear with too much information, in a disorganized way. This is the first time I’m using Flux query language so I’m not familiar with it.

Please help me organize the values in the legend so they have a single title.
This is how they look:
image

Thanks!

Have you played around with the Transformations in Grafana to rename the fields?

Example:

BEFORE:

AFTER:

Thanks Grant! I was able to make a Add Field from calculation Transformation, then replaced all fields and was able to name the value with a new alias.

image

1 Like