Grafana variable for hostname not evaluating correctly in URL for ElasticSearch

I have created a Dashboard in Grafana where I am fetching hostname in my lucene query from Graphana variable as defined below:

Variable Query: {“find”: “terms”, “field”: “host.keyword”}

So far everything worked as expected.

Now I am trying to create a Drilldown link/url inside the Panels of the Dashboard created.
Using $server variable in the url gets evaluated to “{ServerName}” i.e. extra curly braces are getting added to the server name resulting in the failure of the query when redirected to Kibana.

I tried putting regex in the variable settings as “/([A-Z]).*)/”, however this doesn’t help.

Also tried disabling the Multi Value and alike features but nothing seems to have worked so far.

Any help on this is highly appreciated.

1 Like