Grafana is the most popular data visualization tool in Internet architecture and application analysis, and is widely used in scenarios such as industrial monitoring, meteorological monitoring, home automation, and process management. After linking TSDB to Grafana, use Grafana’s diverse and intuitive visualization tools to better monitor and analyze data from TSDB.
This section describes how to link TSDB to Grafana.
Apply for an ECS on the same Virtual Private Cloud (VPC) network as the TSDB instance and that:
- Uses the CentOS 7.3, 64-bit operating system
- Provides a CPU with over 2 GB memory and at least 10 GB of free disk space.
- Already has an IP address
- Has a security group rule in the ECS console to open port 3000.
Next, install Grafana in the ECS and start Grafana as follows.
Run the following commands to install Grafana in the ECS:
$ sudo yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.0.1-1.x86_64.rpm
$ sudo service grafana-server start
Link the TSDB data source to Grafana as follows:
Connect to port 3000 of the ECS, and enter the Grafana logon page. For example, if your ECS has the public network address “188.8.131.52”, visit “http://184.108.40.206:3000/” in your browser.
On the Grafana logon page, enter the user name “admin” and password “admin”. After logging on, enter the Grafana homepage.
Create a data source in Grafana. Specify the following information (use the default values for other settings):
Database type: Select OpenTSDB.
HTTP URL: Enter your VPC address. To view this address, log on to the TSDB console, enter Instance Details > Basic Info, and check the VPC Address column.
OpenTSDB version: Select ==2.3.
After the settings are completed, you can create a dashboard in Grafana and start using it. Review Grafana Help for steps to create a dashboard.