Azion Grafana plugin data source is available for local installation.
To use the Azion Grafana plugin:
- Download the binary file and install Grafana according to your operating system.
- On your machine, create a folder to use with Grafana, such as
grafana-test. - On the folder you've just created, extract the Grafana file you downloaded on step 1.
- Open the extracted file in your tool of preference, such as a terminal or VS Code.
- In the folder
conf, open the filedefaults.ini. - Search for
allow_loading_unsigned_plugins =and replace it with:
allow_loading_unsigned_plugins = azion-azion-datasource
- Create a folder called
data> inside it, create a new folder calledplugins. Thedatafolder may already exist in your repository; then, you only need to create thepluginsfolder. - Download the Azion plugin zip file containing the plugin's assets.
- Copy the downloaded file to the
pluginsfolder you created insidedata. - On a terminal, open the
pluginsfolder > run:
unzip azion-azion-datasource-*.*.*.zip -d ./azion-azion-datasource
- Restart the Grafana server to load the manually installed plugin.
By default, Grafana uses the localhost:3000 port to access it.
Refer to How to use a pre-built dashboard with the Azion plugin on Grafana and How to customize a dashboard with the Azion plugin on Grafana to continue using the Azion Grafana plugin.
You can also run the Azion Grafana plugin locally. To do so:
-
Install dependencies:
yarn
-
Build the plugin in development mode or run it in watch mode:
yarn dev # or yarn watch -
Build the plugin in production mode:
yarn build
-
Run the tests (using Jest):
# Runs the tests and watches for changes yarn test # Exists after running all the tests yarn lint:ci
-
Spin up a Grafana instance and run the plugin inside it (using Docker):
yarn server # and yarn dev -
Run the linter:
yarn lint # or yarn lint:fix