An app for visualising checks that require immediate action or investigation.
Follow these steps once you have pulled the repo:
npm install
npm run build
# Alternatively watch for changes in a separate bash session
# npm run dev
npm run server
http://localhost:3000/a/grafana-advisor-app
Click on the "Refresh" button in case you don't see anything, and refresh the page after a few seconds.
(Clicking the button initiates the checks, but it "doesn't wait" for them to finish, that can take some time.)
Running the plugin in grafana/grafana
can make development easier, since the dev build of the grafana repo has a lot of plugins and datasources provisioned that we can test against.
This will produce a dist/ directory under the plugin.
npm run build
We want to create a symbolic link in grafana/grafana that points to our plugins dist/ folder, so any time we change the plugins frontend it gets reflected.
# PATH_TO_YOUR_PLUGIN: path to the local copy of grafana-advisor-app, e.g. "/Users/leventebalogh/grafana-advisor-app"<br>
# PATH_TO_GRAFANA: path to the local copy of grafana/grafana, e.g. "/Users/leventebalogh/grafana"
ln -s <PATH_TO_YOUR_PLUGIN>/dist/ <PATH_TO_LOCAL_GRAFANA>/data/plugins/grafana-advisor-app
(Run this from the root of your local grafana/grafana.)
make run