This topic describes how to add and use a Zabbix data source in Grafana by using the Zabbix plug-in.
Prerequisites
Data is available in Zabbix.
A Grafana workspace is created. For more information, see Create and manage a Grafana workspace.
The version of Grafana is 9.0.x or later.
Go to the Grafana console
Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.
On the Workspace Management page, find the workspace that you want to manage and click the URL in the URL column to go to Grafana.
NoteYou can log on to Grafana with the administrator account of Grafana and the password that you configured when you created the workspace. You can also click Sign in with Alibaba Cloud to log on to Grafana with the current Alibaba Cloud account.
Install and enable the Zabbix plug-in
Grafana 9.0.x
In the left-side navigation pane, click the icon. On the Configuration page, click the Plugins tab.
On the Plugins tab, search for and click Zabbix.
On the Plugins/Zabbix page, click Install.
After the installation is complete, click Enable.
Grafana 10.0.x
Click the icon in the upper-left corner of the Grafana homepage.
In the left-side navigation pane, click Administration. On the page that appears, click Plugins in the left-side navigation pane.
On the Plugins/Zabbix page, click Install.
After the installation is complete, click Enable.
By default, the plug-in is disabled after it is installed. Before you use the plug-in, you must enable the plug-in.
Add a Zabbix data source
Grafana 9.0.x
In the left-side navigation pane, click the iocn. On the Data sources tab of the Configuration page, click Add data source.
On the Add data source page, search for and click Zabbix.
On the Settings tab, configure the parameters. The following table describes the parameters.
Parameter
Description
Example
Name
The name of the data source. You can specify a custom name.
Zabbix
URL
The URL of the Zabbix service.
https://[Zabbix Server IP]/api_jsonrpc.php
Username
The username that is used to log on to Zabbix.
Default value: Admin.
Password
The password that is used to log on to Zabbix.
Default value: zabbix.
Click Save & test.
Grafana 10.0.x
Click the icon in the upper-left corner of the Grafana homepage.
In the left-side navigation pane, choose Connections > Data sources.
On the Data sources page, click Add new data source.
On the Add data source page, search for and click Zabbix.
On the Settings tab, configure the parameters. The following table describes the parameters.
Parameter
Description
Example
Name
The name of the data source. You can specify a custom name.
Zabbix
URL
The URL of the Zabbix service.
https://[Zabbix Server IP]/api_jsonrpc.php
Username
The username that is used to log on to Zabbix.
Default value: Admin.
Password
The password that is used to log on to Zabbix.
Default value: zabbix.
Click Save & test.
Use the data source to create a dashboard
Grafana 9.0.x
In the left-side navigation pane of the Grafana homepage, click the icon.
On the Browse tab of the Dashboards page, click New Dashboard.
On the New dashboard page, click Add a new panel.
On the Query tab of the Edit Panel page, select the Zabbix data source that you added in Grafana 9.0.x in the preceding step. Then, configure the parameters in the A section. The following figure shows an example.
In the right-side pane, specify the name, type, and graph styles of the chart.
After you complete the preceding settings, click Apply in the upper-right corner of the Edit Panel page.
In the upper-right corner, click the icon. Then, specify the name of the dashboard and the directory in which the dashboard resides.
Click Save.
Grafana 10.0.x
Click the icon in the upper-left corner of the Grafana homepage.
In the left-side navigation pane, click Dashboards.
On the Dashboards page, click New in the upper-right corner, and then click New Dashboard.
On the New dashboard page, click + Add visualization.
In the Select data source dialog box, select the Zabbix data source that you added in Grafana 10.0.x in the preceding step.
On the Query tab of the Edit panel page, configure the parameters in the A section. The following figure shows an example.
In the right-side pane, specify the name, type, and graph styles of the chart.
Click Apply.
In the upper-right corner, click the icon. Then, specify the name of the dashboard and the directory in which the dashboard resides.
Click Save.