grafana / worldmap-panel

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

How can I deploy two worldmap-panel on the same grafana? #247

Open amfgomez opened 4 years ago

amfgomez commented 4 years ago

Hello everyones.

I want to deploy two instances of worldmap-panel in my grafana.

The first worldmap-panel plugin is the original, I have used to deploy the "grafana-client install" command. The second worldmap-panel plugin, I have made some modifications and I have changed the following files:

I have modified the path to plugins folder to another name. For example grafana-worldmap-panel to custom-panel.

Inside the grafana plugins folder. I have two folders grafana-worldmap-panel and custom-panel. But grafana shows me this:

image

amotl commented 4 years ago

Dear @amfgomez,

the directory name doesn't matter, it's the plugin id within plugin.json you have to modify, see also https://github.com/panodata/grafana-map-panel/blob/0.8.1/src/plugin.json#L4.

Saying this, we are happy to take your changes on our fork [1] if you plan to contribute then. There are also chances you might like the additional features there.

With kind regards, Andreas.

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

amotl commented 4 years ago

Dear @amfgomez,

@wetterfrosch recently experienced issues with multiple instances of Worldmap, too. After switching to our fork [1,2], everything worked smoothly again.

With kind regards, Andreas.

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

wetterfrosch commented 4 years ago

/At least/ when one is not mixing two different types of map-panel-plugins on the same dashboard, yes!

amotl commented 4 years ago

It looks like we already discussed further details within https://github.com/panodata/grafana-map-panel/issues/47. Time flies!