grafana / worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
MIT License
309 stars 199 forks source link

Passing context in clickthrough URL with elastic data source with $__field_ variables #257

Open vmanju123 opened 4 years ago

vmanju123 commented 4 years ago

I am using 0.9.0 map panel with Grafana 6.5.2

I am trying to pass the URL as below https://xyz.com/d/xyz-monitor/xyz-monitor?&from=${__from}&to=${__to}&var-Filter=clientGeo|=|${__field_clientGeo}&var-Filter=applicationDescription|=|${__field_applicationDescription}

in the above URL clientGeo is the geo hashpoint and applicationDescription is another field both fields coming from elastic search query, I can see from and to built in variables picking up the time fields form the main panel but clientGeo and applicationDescription are not resolving to values, both clientGeo and applicationDescription are in the elastic query and returning data to main panel as i can see data on map panel, but not getting resolved to values in the click through URL, looking at he clickthrough URL information i saw that we need to prefix with $_field with each data field in URL, but it doesnot seem to be working or i am doing something wrong, any help is appreciated,

thanks

amotl commented 4 years ago

Dear @vmanju123,

the clickthrough-links with variable interpolation feature is coming from our pen and has not been merged into upstream.

In order to keep things straight, please open an issue at our fork [1].

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel/issues

vmanju123 commented 4 years ago

thanks amotl , how do i open a issue at fork[1] ? i was under impression the dev branch 0.9.0 has this feature in ? as i saw the code in 0.9.0 https://github.com/panodata/grafana-map-panel/blob/develop/src/data_formatter.ts

same issue is being discussed in below issue, but i am using clickthrough URL and not link URL from database - can't afford to introduce link to each data point & bloat the database

https://github.com/panodata/grafana-map-panel/issues/12

amotl commented 4 years ago

How do i open a issue at the fork?

It should work in the same way as on the upstream repository. I have just created an appropriate issue where we can continue the discussion, see https://github.com/panodata/grafana-map-panel/issues/57.

vmanju123 commented 4 years ago

I can confirm that with 0.9.0 DEV binaries I have got this to work with Table format in elastic search end to end, thanks for your help, much appreciated,