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

feature required in world map to redirect to custom pane after clicking on circle on maps. #248

Open viplov8912 opened 4 years ago

viplov8912 commented 4 years ago

I am running Grafana world map to view issue 'problems' in the server.in the current scenario, hovering over the circle in the maps shows me a small info about the server.my grafana feeds data from my zabbix server.i have created a custom pane called 'Problems'.which displays all triggers and issue form zabbix after i select a host name in grafana. The issue is.. i have to copy and enter the server name manually to access the problem pane.i want to enable this feature just by single clicking on the circles on the maps which should redirect to the problem pane. i know the changes are needed to be done in leaflet.js file in the server but unfortunately my java script skill is not up to the desired level.

kindly help.

amotl commented 4 years ago

Dear @viplov8912,

our fork [1,2] 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.

Clickthrough links This combines both clickthrough link implementations #129 and #190, integrates sticky labels from 6ac68ef and adds basic variable interpolation based on keys from dataPoint.

Variable interpolation all the way down This brings Grafana-style variable interpolation to all panel settings. It will allow you to pull variables from dashboard variables, data point fields and URL request parameters and also override panel control options with URL request parameters.

  • Query parameters prefixed by request_ are merged into the set of variables interpolation dictionary.
  • Request parameters prefixed with panel- optionally override the respective control options.

We hope this helps and will be happy to hear about the outcome for you.

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel [2] https://community.panodata.org/t/grafana-map-panel/121