当前位置:网站首页>Deploy grafana to realize graphical monitoring
Deploy grafana to realize graphical monitoring
2022-06-28 22:10:00 【Hejing_ zhang】
Grafana Is an open source measurement analysis and visualization tool , By analyzing the collected data 、 Inquire about , And then it's visually displayed , And can realize the alarm .
1. Use grafana Connect prometheus
Select the version you want to download
https://grafana.com/grafana/download/5.4.3?edition=oss
systemctl start grafana-server
systemctl enable grafana-server
netstat -ntulp | grep 3000
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-IziBGTN8-1644918977560)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172032423.png)]](/img/6e/aa2a97a617f8fb1c4712130d47d28f.jpg)
2. Browser access http://ip:3000
Use default account admin password admin
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-VPKYbU2U-1644918977561)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172127161.png)]](/img/f0/959371df3653477c77c1e641a94e9d.jpg)
3. Add data sources
hold prometheus The collected data is added to as a data source grafana
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-UHVN3GzW-1644918977562)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172332050.png)]](/img/6e/6ecae900a4c2f9cdfc1aba4b081f32.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-LJKw2ebv-1644918977563)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172404847.png)]](/img/bc/bdeea95bea4944e4be91ab40381c61.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-G5GRp2U3-1644918977563)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172730134.png)]](/img/73/ad52e9bc9ad3fc76e57e179455dd34.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-S2pAeJ46-1644918977564)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172823997.png)]](/img/39/1493fa72744d172d2d6d07d1f57614.jpg)
4. Add a graphical display for the data source
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-2iNPQs5b-1644918977564)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215172940325.png)]](/img/d3/ce07aba2341bf9701267f5bbd8adfe.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-aUpRck92-1644918977565)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215173007139.png)]](/img/c2/58fc191ce446e9fe996fb9f1aab210.jpg)
fill CPU Utilization rate promQL sentence , After a while, you can see that the chart has data
100 - avg(irate(node_cpu_seconds_total{mode="idle"}[5m])) by(instance)*100
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-xoWB6z0p-1644918977565)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215173243605.png)]](/img/ac/a59bd11eb59089d2058c68ebb58512.jpg)
The time range can be viewed on the right in the figure below
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Cc1dsAR8-1644918977566)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215174259063.png)]](/img/6b/7b425dc0a98313506344c7af771445.jpg)
5. Import official dashboard
Import online
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-5wtMssE8-1644918977566)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215174430304.png)]](/img/8b/27f52494fb7c4a0d0ae1203e054650.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-sMg1FMBB-1644918977566)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215174447734.png)]](/img/f5/c25ba4a6da6b0cb9c1514268c37478.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-xeV3nJse-1644918977567)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215174511834.png)]](/img/f6/fa03fed7f8c697480603ea2d32b367.jpg)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-hDd0sxR2-1644918977567)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215174556574.png)]](/img/6d/7efe285ffc3a7bd152f45aa0e62404.jpg)
Hi Tech pictures on stage
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-kmMqQJvF-1644918977568)(C:\Users\hejing\AppData\Roaming\Typora\typora-user-images\image-20220215174705625.png)]](/img/3f/c99c83f468c71f319f0ae5e0177a50.jpg)
You can also download files offline
Reference documents :https://blog.csdn.net/heian_99/article/details/103956931 and https://blog.csdn.net/anqixiang/
边栏推荐
- LeetCode116. Populate the next right node pointer for each node
- LxC shared USB device
- Hyperjumptech/grule-rule-engine: rule engine implementation of golang
- Un voyage profond d'IA dans Huawei Cloud
- Usage example of qjsonobject
- LeetCode188. The best time to buy and sell stocks IV
- Which software is safer to open an account on and what is the account opening process?
- HTTP Caching Protocol practice
- [golang] leetcode intermediate subset & Word Search
- docker下载Mysql镜像创建数据库链接时候发生密码错误问题
猜你喜欢
随机推荐
Constructing the three-dimensional anti penetration of the actual combat defense system
[linq] execute SQL like in statements using EF to LINQ
User network model and QoE
LxC shared USB device
Lua source code analysis: 1 Lua variable type mutability is implemented in C code.
Leetcode: expand a binary tree into a linked list_ one hundred and fourteen
[linq]c list type grouping sum
Google search is dying | DKB
构建实战化防御体系之立体防渗透
Hyperjumptech/grule-rule-engine: rule engine implementation of golang
Sword finger offer:[day 2 linked list (simple)] --- > print the linked list from end to end
Lumiprobe proteorange protein gel dye instructions
Lumiprobe non fluorescent alkyne research - dbco NHS ester
wrk压力测试工具介绍
rosdep update 使用小鱼fishros解决ros1/ros2问题 2022
LeetCode56. 合并区间
Akamai acquires linode
Recommend two high-quality Wallpaper software
Hashicorp/raft introduction and source code analysis (III): introduction to cluster node recovery
给朋友的忠告








