kamon-io / docker-grafana-graphite

Docker image with StatsD, Graphite, Grafana 2 and a Kamon Dashboard
Apache License 2.0
1.14k stars 495 forks source link

plugin installation #99

Open fluxsaas opened 7 years ago

fluxsaas commented 7 years ago

Hey,

great work with the docker image, it works out of the box. very nice!

sth. that came up during my tests:

the plugin install directory is /var/lib/grafana/plugins, but the shared folder is /opt/grafana/data

how i made it work:

login to the container:

$ make shell

install the plugin:

$ cd /opt/grafana/
$ ./bin/grafana-cli plugins install grafana-worldmap-panel
installing grafana-worldmap-panel @ 0.0.16
from url: https://grafana.net/api/plugins/grafana-worldmap-panel/versions/0.0.16/download
into: /var/lib/grafana/plugins

✔ Installed grafana-worldmap-panel successfully

Restart grafana after installing plugins . <service grafana-server restart>

move the plugin to the shared directory

$ mv /var/lib/grafana/plugins/grafana-worldmap-panel/ data/plugins/

exit container and restart

$ exit
$ make down
$ make up

maybe a problem with the grafana-cli or the env. variables?

again, thanks for your work on the docker image!

JnRouvignac commented 6 years ago

I agree that would be super useful. Let's ping @dpsoft .

Here is how it can be done: grafana/grafana-docker#59, see also the implementation.