This directory contains a Docker Compose configuration that sets up Grafana in a Docker container, installs and configures the plugin from source and provides a sample Dashboard for testing.
In order to make live changes to the plugin available to Grafana, the sources have to be translated with Babel whenever they change:
npm install
npm run watch
Grafana needs to be restarted whenever the plugin.json
is modified.
This command starts Grafana in the background:
sudo UID=$(id -u) GID=$(id -g) docker compose up -d
This command stops Grafana, but keeps the container its data:
sudo UID=$(id -u) GID=$(id -g) docker compose stop
This command stops Grafana, removes the container and its data:
sudo git clean -xffd data
sudo UID=$(id -u) GID=$(id -g) docker compose rm -sf