Performance monitoring tool-Grafana installation and usage method

Grafana is an open source data visualization and monitoring platform. It provides a wealth of visualization methods, such as charts, dashboards, alarms, etc., and supports multiple data sources, including Prometheus, InfluxDB, Graphite, etc., and is suitable for system monitoring and data analysis of various scales. Grafana also has a powerful plug-in ecosystem, users can add new data sources, charts, panels and other plug-ins to extend its functionality according to their own needs.

Common Surveillance Scenarios

  1. Server monitoring: monitor server running status through Grafana, such as CPU, memory, disk, network and other indicators, and find problems in time.

  2. Application monitoring: Use Grafana to monitor application performance indicators, such as the number of concurrent connections, response time, error rate, etc.

  3. Database monitoring: Grafana can monitor the running status of the database, such as query response time, number of transactions, locking and other information, and track the health of the database.

  4. Container monitoring: monitor the health status of containers through Grafana, such as CPU, memory, storage space and other indicators.

  5. Network monitoring: Use Grafana to monitor the status of network devices, such as bandwidth usage, packet loss rate, network latency, etc.

  6. IoT device monitoring: Monitor the data uploaded by IoT devices through Grafana, such as temperature, humidity, light, etc., and control device operations.

Overall, Grafana can monitor various metrics and provide a visual view of an application, service or infrastructure.

install grafana

Official website download document

sudo yum install -y https://dl.grafana.com/oss/release/grafana-10.0.3-1.x86_64.rpm

insert image description here

start grafana

https://grafana.com/docs/grafana/latest/setup-grafana/start-restart-grafana/

sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server

insert image description here

visit grafana

http://localhost:3000
The default account password is admin
insert image description here
insert image description here

How to use grafana?

Grafana is a popular open source monitoring tool that makes monitoring and performance analysis of distributed systems easy. Here are a few steps:

  1. Configure the data source: configure the data source in Grafana, it is recommended to use Prometheus as the data source. When configuring Prometheus, you need to specify the correct Prometheus address and port.

  2. Create a dashboard: The dashboard is the main interface for displaying monitoring data in Grafana. You can display the required monitoring data by editing and configuring the panels and basic elements of the dashboard.

  3. Add panel: Add panels to the dashboard, each panel represents a part of monitoring data. Different panel types and visualization methods can be selected, such as line chart, column chart, pie chart, etc.

  4. Set up alarms: Set up alarms in Grafana to send out timely alarms when the system has abnormalities or performance problems. You can set alert rules, notification methods and notification objects, etc.

  5. Share the dashboard: You can share the dashboard with others so that they can view monitoring data and operating conditions. You can use Grafana's built-in sharing functionality or generate a sharing link.

Configure infulxdb data source

https://grafana.com/docs/grafana/latest/datasources/influxdb/Fill
insert image description here
in the configuration information
insert image description here
insert image description here
and click save and test to display success as shown in the figure.

Guess you like

Origin blog.csdn.net/seanyang_/article/details/132105083