Display specific column

Hello everyone. I’m new to influx, please tell me how to remove unnecessary columns when displaying in grafana? I need the container_name column to be displayed


my flux query looks like this
from(bucket: “infra_hosts”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“host”] == “docker01”)
|> filter(fn: (r) => r[“_measurement”] == “docker_container_cpu”)
|> filter(fn: (r) => r[“_field”] == “usage_percent”)
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: “last”)

@Nordvist By default, Grafana uses all the columns in the group key to build out labels. To customize, open the panel options and find the Legend pane. Here you can select which columns to use in the legend.