Install the Azion plugin for Grafana
Install the Azion data source plugin on a local Grafana instance and connect it to your Azion account with a personal token.
You can install the Azion data source plugin on a local Grafana instance and connect it to your Azion account from Grafana. The plugin shows data from your applications on Azion as charts and tables in Grafana dashboards. It reads Real-Time Metrics and Real-Time Events through the GraphQL API, and you build each dashboard from GraphQL queries.
Grafana dashboards complement the charts that Real-Time Metrics shows in Azion Console. Use them for top X metrics such as IP addresses or blocked countries, security metrics, specific status codes, and customized alerts.
Prerequisites
- An Azion account. To create one, go to the Azion Console sign-up page.
- A personal token for your account. To create one, refer to Personal tokens.
- One or more applications on your account, with traffic.
- A Grafana instance that you run locally. For Grafana itself, refer to Grafana.
Install the plugin
The Azion plugin installs on a local Grafana instance, and that instance must allow unsigned plugins. The plugin repository holds the installation instructions.
To install the plugin on your local Grafana instance:
Follow the local installation instructions in the Azion plugin repository. The repository itself is aziontech/grafana-plugin.
After the installation, the Azion plugin is available in the plugin list of your Grafana instance.
Create the Azion data source
A data source connects the Azion plugin to your account. Grafana authenticates every query of the data source with your personal token.
To create the data source in Grafana:
In the Grafana menu, go to Administration > Plugins.
In Search, enter Azion.
Grafana opens the configuration page of the new data source.
In the Settings tab, enter a descriptive Name.
In Personal Token, enter the personal token of your Azion account.
Select Save & test. Grafana saves the data source and runs a quick test of the authentication.
The authentication test passes, and the Azion data source is saved in your Grafana instance. Your Grafana dashboards use it to query Real-Time Metrics and Real-Time Events.