当前位置:网站首页>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/
边栏推荐
- Interface test process
- Understanding web automated testing
- How do independent site sellers efficiently manage complex Facebook pages?
- PAT 1021. Traversal of the deep root (25 points) graph, DFS, calculating the number of connected components
- If you are a C developer, look at these three explicit programming techniques
- CVPR 2022|极具创意&美感的文字生成方法!支持任意输入
- [linq]c list type grouping sum
- 构建实战化防御体系之立体防渗透
- Security dilemma of NFT liquidity agreement - Analysis of the hacked event of NFT loan agreement xcarnival
- Golang JSON serializing and deserializing strings deserializing to map[string]interface{}
猜你喜欢

Smarca2 antibody study: abnova smarca2 monoclonal antibody protocol

Construction and application of urban brain knowledge map

Anti rabbit dylight 488 abbkine universal immunofluorescence (if) toolbox

Progress in visual weakly supervised learning

10、标准I/O输入输出重定向及管道

【电子实验2】简单电子门铃

Laravel文档阅读笔记-Adding a Markdown editor to Laravel

Survival of beaver: post-90s female doctors and AI developers

Activate function

小样本利器2.文本对抗+半监督 FGSM & VAT & FGM代码实现
随机推荐
Interface use case design
Go cryptobin common encryption and decryption Libraries
彪马携手10KTF Shop启动其迄今为止规模首屈一指的Web3合作项目
Anti rabbit dylight 488 abbkine universal immunofluorescence (if) toolbox
User network model and QoE
How can the sports app keep the end-to-side background alive to make the sports record more complete?
Adding a markdown editor to lavel
Rosdep update using fishros to solve ros1/ros2 problems 2022
LeetCode116. Populate the next right node pointer for each node
PHP login problem
Activate function
Openfire 3.8.2 cluster configuration
加刚干的前提
LeetCode877. Stone game
Live broadcast preview | can SQL also play industrial machine learning? Mlops meetup V3 takes you to the bottom!
Multinomial distribution (a discrete distribution)
Progress in visual weakly supervised learning
PHP自学Go日记(四):GO的变量声明方式
16 `bs对象.节点名div.属性contents` children descendants 获取子节点 子孙节点
Hardware development notes (VII): basic process of hardware development, making a USB to RS232 module (VI): creating 0603 package and associating principle graphic devices