-
Notifications
You must be signed in to change notification settings - Fork 195
Add Clickthrough URL option for country circles #129
Conversation
This is a simple implementation of a panel option being used to navigate to a new URL on click.
…a#190 Add basic variable interpolation based on keys from `dataPoint`. Saying that, all metric values have been added to the dataPoint beforehand by prefixing them with `point_` to allow for setting things like `clickthroughURL: /url/to/$point_station_id` if there’s a field called `station_id` in the current datapoint.
|
Dear James, IntroductionWe cherry-picked your improvements into our working branch at [1], wrote about this and further updates at [2] and just announced the outcome at [3], which you might also be interested in. Thanks a bunch for sharing your efforts. DetailsAs you can see from the screenshot below, we improved the situation where only a field called With kind regards, [1] https://github.com/hiveeyes/grafana-worldmap-panel |
|
Hi all, Ronan. |
|
Dear @ronansalmon, click-through should work in https://github.com/hiveeyes/grafana-worldmap-panel already. Can you verify that? With kind regards, |
I tried, but the plugin does not work over here : I tried both the 0.4.0 and the latest devel. We are using a pretty old version of Grafana v5.1.3 and I am not allowed to update it yet. Ronan. |
|
Dear @ronansalmon, thanks for sharing your observations. May I humbly ask how you installed the latest release from [1]? The last time we tried, we have been able to get it running successfully by following the guidelines at [2]. With kind regards, [1] https://github.com/hiveeyes/grafana-worldmap-panel |
|
Hi,
|
|
Dear @ryft and @ronansalmon,
Thanks for letting us know. There are some minor updates on [1], mainly about the most recent build 0.6.0 together with respective instructions on how to install the refurbished panel now called Map Panel side-by-side with the canonical Worldmap Panel in order to give you some leg room trying it out, even on production installations of Grafana. May we humbly ask @ryft to try out the clickthrough feature there (thanks for your contribution again!) and - given it works as intended - to close this PR? With kind regards, [1] https://community.grafana.com/t/giving-the-grafana-worldmap-panel-some-love/17210/11 |
|
Hi Andreas, apologies for the delayed response, I'm happy to close this PR. |
|
Hi Ryft I made these changes on my local source and compiled the plugin and i am able to launch the URL, how do i pass context into the URL, ? I have following issues
thanks |
|
Dear @vmanju123, please have a look at #129 (comment) and #248 (comment) where we described that we implemented this feature within our fork [1,2]. It has incorporated more sophisticated drill-down/clickthrough features from the community as well as some advanced variable interpolation features from our own pen. Both features might help you here. The updated plugin can be installed easily [3]. We hope this helps and we will be happy to hear about the outcome for you. With kind regards, [1] https://github.com/panodata/grafana-map-panel |
|
I tried downloading the latest DEV branch code 0.9.0 and compile it, I am seeing following error ERROR in /root/go/src/github.com/grafana/grafana/data/plugins/grafana-map-panel/src/core.ts ERROR in /root/go/src/github.com/grafana/grafana/data/plugins/grafana-map-panel/src/core.ts ERROR in /root/go/src/github.com/grafana/grafana/data/plugins/grafana-map-panel/src/core.ts ERROR in /root/go/src/github.com/grafana/grafana/data/plugins/grafana-map-panel/src/chrome.ts ERROR in /root/go/src/github.com/grafana/grafana/data/plugins/grafana-map-panel/src/chrome.ts Trace: Build failed |
|
Dear @vmanju123, thanks for the feedback. I have diverted further discussions to grafana-toolbox#56 in order not to clutter the original issue. With kind regards, |
|
Thanks, coming back to original issue, I am trying to pass the URL as below in the above URL clientGeo is the geo hashpoint and applicationDescription is another field both from elastic search, I can see __from and __to 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, but not getting resolved to values in the click through URL |
|
Dear @vmanju123, the variable interpolation feature does not have anything to do with this pull request. Please open an issue about that on our fork [1]. With kind regards, [1] https://github.com/panodata/grafana-map-panel |
|
ok & thanks, makes sense |

This is a simple implementation of a panel option being used to navigate to a new URL on click.
Instances of
$countryin the clickthrough URL will be replaced with the selected country. In fact this should work regardless of location data type, so perhaps "country" is not the most appropriate keyword.See #62 and #121.