From: www.cnblogs.com/imyalost/p/…
As the business becomes more and more complex, the requirements on software systems become higher and higher, which means that we need to control the operation of the system at all times. As a result, real-time monitoring and visualization of the system are required capabilities of the infrastructure.
This blog introduces the installation and features of the open source visualization suite Grafana…
Official website address:Grafana
Official documents:Grafana document
Environment: CentOS7.4 64-bit
Grafana version: 5.3.2
I. Introduction to Grafana
Grafana is a cross-platform open source metric analysis and visualization tool that enables you to query and visually present collected data with timely notifications. It mainly has the following six characteristics:
1, display mode: fast and flexible client chart, panel plug-in has many different ways of visualization indicators and logs, the official library has rich dashboard plug-in, such as heat map, line chart, chart and other display modes;
2. Data sources: Graphite, InfluxDB, OpenTSDB, Prometheus, Elasticsearch, CloudWatch, KairosDB, etc.
3. Notification and reminder: visually define alert rules for the most important indicators. Grafana will continuously calculate and send notifications, and get notifications through Slack, PagerDuty, etc., when the data reaches the threshold.
4. Mixed display: Mix different data sources in the same chart, you can specify data sources based on each query, or even customize data sources;
5. Annotations: Use rich event annotation charts from different data sources to show the full event metadata and markup by hovering over the event;
Filters: Ad-hoc filters allow the dynamic creation of new key/value filters that are automatically applied to all queries using the data source.
Download and install
1, download
Download from Grafana
Installation Guide: Grafana installation Guide
Download the corresponding package based on your system version and configuration. The following instructions are provided. You can directly download the package by following the instructions:
2, start,
After the download and installation is complete, run the service grafana-server start command to start the service, open the browser, and enter IP+ port. 3000 is the default listening port of Grafana.
The default user name and password are admin and admin. When you log in to the system for the first time, you are required to change the password. After changing the password, the following information is displayed:
3. Application of Grafana
1. Add a data source
First to add a data source, click on the Grafana icon in the upper left as shown in the following example:
PS: Select influxDB as the data source, and create the user and corresponding database in the influxDB.
2. Create a DashBoard
After creating the data source, you need to create the DashBoard (DashBoard), you can customize, or import the DashBoard you need, the official provides a lot of optional DashBoard.
BashBoard Address: BashBoard
Here I select the dashboard related to JMeter and select Import as shown in the following example:
① Search the JMeter dashboard
2. Select the corresponding dashboard ID
3, copy THE ID, enter the import interface
PS: You need to select user groups and corresponding databases during import.
④ Show the dashboard
PS: In the upper right corner, you can select the period of data display and refresh frequency!
This is the introduction to the installation and use of Grafana. For more information about how to use Grafana, see here: