Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.59 KB

GRAFANA-CROSS-DEVELOPMENT.md

File metadata and controls

62 lines (39 loc) · 1.59 KB

Developing the Explore Profiles plugin with a local version of Grafana

In some cases, you might want to:

  • modify some core Grafana components or
  • test some hypothesis on the plugin that require modifying the platform code,
  • etc.

This section describes how you can set up your local development environment to work both on the plugin and on Grafana code bases.

Requirements

  1. Ensure that your local version of the plugin is properly set up

  2. Check out a local copy of Grafana:

    git clone --depth 1 https://github.com/grafana/grafana
  3. Setup your local Grafana development environment by following Grafana's Developer's guide.

  4. Customize Grafana with the following $WORKING_DIR/conf/custom.ini file:

[paths]
plugins = /path/to/the/explore-profiles/folder

The plugins option lets you customize where Grafana will look for plugins.

See the Configure Grafana documentation for more information.

Development

In the plugin folder

In the terminal, execute:

yarn dev

to build the frontend assets.

In the Grafana folder

In a different terminal tab execute:

yarn start

to build the frontend assets.

In a different terminal tab, run the Pyroscope data source then start the Grafana server:

make devenv sources=pyroscope
make run

Then visit http://localhost:3000