Deploying Grafana to access Zabbix in Alibaba Cloud ECS

Abstract: Learn how to deploy Grafana to access Zabbix

This article shows you how to deploy Grafana on Alibaba Cloud ECS to access Zabbix. Zabbix is an open-source monitoring software for networks and applications while Grafana is an open-source, full-featured dashboard and graph editor for Graphite, InfluxDB, and OpenTSDB. In this tutorial, we will be running CentOS 7.2 on an Alibaba Cloud ECS instance. We will also be using Nginx version 1.9.15 as our web server. Without further ado, let’s look at how we can implement this on our ECS instance.

1. Purchase ECS:

You should have an ECS instance with CentOS 7.2. Other configurations, such as region, do not matter much for our purposes.

2. Install Nginx

Install dependency packages for Nginx on your ECS instance.

Create an Nginx user after installing the dependency packages:

Download Nginx software package and enter the directory:

Compile:

The list below describes the arguments we used when compiling the code:

: This argument enables Nginx state query
: This arguments enables https support
: This argument provides support for SPDY, which in turn must be supported by ssl (You can find more information about SPDY online)
: prce must be configured in order to support the rewrite function

3. Install Grafana

After successfully installing Nginx, we need to install Grafana.
Grafana’s amazing visualization capabilities, combined with Zabbix’s powerful monitoring tools, greatly simplifies network management.
Grafana provides a plug-in for Zabbix, making the combination of these two software extremely convenient. To install Grafana, input the following commands.

4. Manage Website Configuration (Nginx) with Grafana

Now that we have Grafana installed, we can edit Nginx web hosting as follows:

Edit the configuration file ngix.conf:




Add file /etc/hosts:

Access Grafana

5. Add a data source.

Finally, we require a data source for the Zabbix plug-in to work correctly.

And there you have it! You should now be able to access Zabbix using Grafana to monitor and manage your website or application.

Reference:

https://www.alibabacloud.com/blog/Deploying-Grafana-to-access-Zabbix-in-Alibaba-Cloud-ECS_p279036?spm=a2c41.11184631.0.0

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store