All Products
Search
Document Center

Managed Service for Grafana:Add and use a Zabbix data source

Last Updated:Aug 27, 2024

This topic describes how to add and use a Zabbix data source in Grafana by using the Zabbix plug-in.

Prerequisites

Go to the Grafana console

  1. Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.

  2. 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.

    Note

    You 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

  1. In the left-side navigation pane, click the 设置 icon. On the Configuration page, click the Plugins tab.

  2. On the Plugins tab, search for and click Zabbix.

  3. On the Plugins/Zabbix page, click Install.

  4. After the installation is complete, click Enable.

Grafana 10.0.x

  1. Click the image icon in the upper-left corner of the Grafana homepage.

  2. In the left-side navigation pane, click Administration. On the page that appears, click Plugins in the left-side navigation pane.

  3. On the Plugins/Zabbix page, click Install.

  4. After the installation is complete, click Enable.

Important

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

  1. In the left-side navigation pane, click the image iocn. On the Data sources tab of the Configuration page, click Add data source.

  2. On the Add data source page, search for and click Zabbix.

  3. On the Settings tab, configure the parameters. The following table describes the parameters.

    添加Zabbix数据源

    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.

  4. Click Save & test.

Grafana 10.0.x

  1. Click the image icon in the upper-left corner of the Grafana homepage.

  2. In the left-side navigation pane, choose Connections > Data sources.

  3. On the Data sources page, click Add new data source.

  4. On the Add data source page, search for and click Zabbix.

  5. On the Settings tab, configure the parameters. The following table describes the parameters.

    image

    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.

  6. Click Save & test.

Use the data source to create a dashboard

Grafana 9.0.x

  1. In the left-side navigation pane of the Grafana homepage, click the Dashboard icon.

  2. On the Browse tab of the Dashboards page, click New Dashboard.

  3. On the New dashboard page, click Add a new panel.

  4. 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.

    使用Zabbix数据

  5. In the right-side pane, specify the name, type, and graph styles of the chart.

  6. After you complete the preceding settings, click Apply in the upper-right corner of the Edit Panel page.

    image

  7. In the upper-right corner, click the 保存监控大盘 icon. Then, specify the name of the dashboard and the directory in which the dashboard resides.

  8. Click Save.

Grafana 10.0.x

  1. Click the image icon in the upper-left corner of the Grafana homepage.

  2. In the left-side navigation pane, click Dashboards.

  3. On the Dashboards page, click New in the upper-right corner, and then click New Dashboard.

  4. On the New dashboard page, click + Add visualization.

  5. In the Select data source dialog box, select the Zabbix data source that you added in Grafana 10.0.x in the preceding step.

  6. On the Query tab of the Edit panel page, configure the parameters in the A section. The following figure shows an example.

    image

  7. In the right-side pane, specify the name, type, and graph styles of the chart.

  8. Click Apply.

  9. In the upper-right corner, click the 保存监控大盘 icon. Then, specify the name of the dashboard and the directory in which the dashboard resides.

  10. Click Save.