How to use grafana-cli on docker installed Grafana?

northtree picture northtree · Aug 9, 2017 · Viewed 12.9k times · Source

I have installed grafana via docker.

Is it possible to export and run grafana-cli on my host?

Answer

Ricardo picture Ricardo · Aug 23, 2017

If you meant running Grafana with some plugins installed, you can do it by passing a list of plugin names to a variable called GF_INSTALL_PLUGINS.

sudo docker run -d -p 3000:3000 -e "GF_INSTALL_PLUGINS=gridprotectionalliance-openhistorian-datasource,gridprotectionalliance-osisoftpi-datasource" grafana/grafana

I did this on Grafana 4.x

Installing plugins for Grafana 3 "or above"