here i need to plot the graph for feilds SIG_SctpCongestionDuration,SIG_SctpUnavailableDuration with respect to time. In this sample data , fields i am showing only two , but In real time data i may get upto 100 feilds.
I need to use variables instead of giving field names implicitly to show avg of those feilds in same graph. but in grafana elastic query metric , it not taking varibles
Where you have $variable - if you remove that from input field, do you get autocomple of available field? If so, is the SIG_SctpCongestionDuration listed in drop down for example?
I have the same issue. If I use the variable in the same situation as reported, it is not working, if I use the field name, it is working.
Looking at the Query inspector, the query with field name looks identical to the query with variable, but the chart is not populated.
Also, how can I use the variable in the alias patterns field. If I put it with var or {{var}} or [[var]] it always shows the string I put in there, not the value of the variable.
The problem is, if a variable is used in the field, ElasticSearch query is altered and it renders no result.
If in the “selected field” you put the actual name the query will be: … {“field”:“CPU”}, but if you use $variable, the filter will change to … {“field”:"{CPU}"} and this second query returns null for all values