1. What is Grafana?

Grafana is an open source visualization tool written in the Go language and Angular framework for visualization of large scale metrics. It provides a variety of monitoring data visualization UI, including line charts, pie charts, dashboards, etc. It is the most popular visualization tool for timing data in network architecture and application analysis. Support for a variety of different temporal database data sources. Github: github.com/grafana/gra…

2. How is Grafana used?

2.1 Grafana installation

Grafana website: grafana.com/grafana/ Grafana document: grafana.com/docs/ System: CenterOS7.2 Grafana download: grafana.com/grafana/dow… First download the installation file for the version of the system you need to install:

Wget HTTP: / / https://dl.grafana.com/oss/release/grafana-6.3.3-1.x86_64.rpmCopy the code

Sudo yum localinstall grafana 6.3.3-1. X86_64. RPMCopy the code

service grafana-server start
Copy the code


Note: If the browser cannot access, it may be the firewall problem, turn off the firewall.

systemctl stop firewalld.service
Copy the code

2.2 Importing the Grafana dashboard

Dashboard address: grafana.com/grafana/das…

2.3 New Grafana dashboard

New dashboard and access data:

2.4 Data configuration is presented by Grafana

2.4.1 Example data import for InfluxDB

First of all, we can use InfluxDB official figures: document address: docs.influxdata.com/influxdb/v1… Find sample data:

influx -import -path=NOAA_data.txt -precision=s -database=NOAA_water_database
Copy the code

2.4.2 Grafana monitoring sample dashboard configuration

(1) Configure the data source

  • Select data source

  • Adding a new data source

  • Choose InfluxDB

  • Configuring a Data source

  • Click Save to complete the data source configuration

The resources

  • Grafana document
  • Dashboard address