Grafana

How can we install plugins for Grafana?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Grafana getting started: Navigate to the Grafana plugins page, find the desired plugin and click on it, then click the installation tab. There are two ways to install depending on where your Grafana server is running:

  • Cloud: On the For field of the installation tab, select the name of the organization you want to install the plugin on (unless you are only part of one), then click install plugin. Grafana cloud will automatically install the plugin to your Grafana instance, you may need to log out and back in to see the plugin.
  • Local grafana: You can use the Grafana CLI which lets you list available plugins and install them.
grafana-cli plugins list-remote
grafana-cli plugins install

You can also install a packaged plugin by downloading the asset from the installation tab, then extract the archive into the plugin directory. The path to the plugin directory can be seen in the configuration file

unzip my-plugin-0.2.0.zip -d YOUR_PLUGIN_DIR/my-plugin