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.
-
Ensure that your local version of the plugin is properly set up
-
Check out a local copy of Grafana:
git clone --depth 1 https://github.com/grafana/grafana
-
Setup your local Grafana development environment by following Grafana's Developer's guide.
-
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.
In the terminal, execute:
yarn dev
to build the frontend assets.
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