Article Directory
foreword
Tools required for the project:
Link: https://pan.baidu.com/s/1sIa8nninf2Fz6YqE3vUpqQ?pwd=5wr3
Extraction code: 5wr3
– Shared from Baidu Netdisk super member V4
08: Introduction to the visualization tool Grafana
-
Goal : Understand the functions and characteristics of Grafana
-
path
- step1: function
- step2: Features
-
implement
-
https://grafana.com/
-
Function : Grafana is a cross-platform open source measurement analysis and visualization tool, which can query the collected data and then visualize it, and notify in time
-
features
- Various display methods : fast and flexible client-side charts, panel plug-ins have many different ways of visual indicators and logs, and the official library has a wealth of dashboard plug-ins, such as heat maps, line graphs, charts, and other display methods
- Rich data sources : Graphite, InfluxDB, OpenTSDB, Prometheus, Elasticsearch, CloudWatch and KairosDB, etc.
- Various notification reminders : define alert rules for the most important indicators in a visual way, Grafana will continuously calculate and send notifications, and get notifications through Slack, PagerDuty, etc. when the data reaches the threshold
- Mixed display : mix and use different data sources in the same chart, you can specify data sources based on each query, or even customize data sources
- Annotations : Annotate graphs with rich events from different data sources, hovering over an event reveals full event metadata and tags
- Filters : Ad-hoc filters allow dynamic creation of new key/value filters that are automatically applied to all queries using that data source
-
-
summary
- Understand the functions and features of Grafana
09: Visualization tool Grafana deployment
-
Goal : Realize the deployment of the visualization tool Grafana
-
implement
-
Upload and install
cd ~ rz yum install -y grafana-7.5.3-1.x86_64.rpm
-
start service
# 设置开机自启动 systemctl enable grafana-server # 启动服务 systemctl start grafana-server # 查看服务状态 systemctl status grafana-server
-
Verification : http://node1:3000/
-
The default username and password are both admin
-
Can be modified by yourself
-
Enter the main interface
-
-
-
summary
- Realize the deployment of the visualization tool Grafana
10: Grafana integrates Prometheus
-
Goal : Realize Grafana integration with Prometheus
-
implement
-
add data source
-
select template
- https://grafana.com/grafana/dashboards
-
```
8919
```
-
import report
-
summary
- Grafana integrates Prometheus
11: Grafana integrates MySQL monitoring
-
Goal : Realize Grafana integrated MySQL monitoring
-
implement
-
select template
11323
-
import report
-
-
summary
- Grafana integrated MySQL monitoring