Grafana Plugins

Grafana plugins allow to add pyroscope flamegraph to your Grafana dashboard.

Grafana dashboard example

Installation Guide#

  1. Install the panel plugin
  2. Install the datasource plugin
  3. Open Grafana and go to Configuratin -> Plugins
  4. Check that plugins are available
  5. Set up data source plugin:
    • Configuration -> Data Sources -> Add data source
    • click on pyroscope-datasource
    • Specify Pyroscope host in Endpoint field: endpoint
  6. Set up panel plugin:
    • Add an empty panel on your dashboard
    • Select pyroscope-panel from Visualization list
    • Under panel view in Query tab select pyroscope-datasource
    • In Application name input specify app name
    • Click Applysettings

Congratulations! Now you can monitor application flamegraph on your Grafana dashboard! dashboard

Running latest plugin versions#

Grafana plugin approval takes some time, so if you want to run the latest versions you can do by:

Running grafana with the GF_INSTALL_PLUGINS environment variable with (broken in 2 lines for readability:)

https://github.com/pyroscope-io/grafana-panel-plugin/releases/download/v1.1.0/pyroscope-panel-1.1.0.zip;pyroscope-panel,https://github.com/pyroscope-io/grafana-datasource-plugin/releases/download/v1.1.0/pyroscope-datasource-1.1.0.zip;pyroscope-datasource

You can get the correct URLS by looking at our releases in the grafana-datasource-plugin repo and the grafana-panel-plugin repo

For example:

GF_INSTALL_PLUGINS=https://github.com/pyroscope-io/grafana-panel-plugin/releases/download/v1.1.0/pyroscope-panel-1.1.0.zip;pyroscope-panel,https://github.com/pyroscope-io/grafana-datasource-plugin/releases/download/v1.1.0/pyroscope-datasource-1.1.0.zip;pyroscope-datasource

Using variables#

Since version 1.1.0 of the pyroscope-datasource we support querying using variables.

For example: query variables