Possible to duplicate a query using variables?

templating

#1

Hello,

I have a variable “NET_STAT” wich returns for example these 2 values::
DelayedACKLost
TCPAbortOnData

When I try to use it in a graph query:
metric: Max: [[NET_STAT]]

I can see in the Query Inspector that the field is surrounded with {} characters:
…,“aggs”:{“1”:{“max”:{“field”:"{DelayedACKLost,TCPAbortOnData}"}}}}

So I think it is not possible to duplicate a query but I prefer to ask the community, just in case.

In reality, the NET_STAT variable has +100 fields to display, writing a query per field is not the best option, and duplicating a panel will not be useful.
so If you have any trick, I’ll take it :wink: