In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Collect memory utilization
Total memory on the node_memory_MemTotal_bytes host
Free memory on the node_memory_MemFree_bytes host
Memory on the node_memory_Buffers_bytes buffer cache
Memory in the node_memory_Cached_bytes page cache
Calculate the percentage of memory used
(total memory-(free memory-buffer + cache)) / total memory * 100
Round ((node_memory_MemTotal_bytes- (node_memory_MemFree_bytes+node_memory_Buffers_bytes+node_memory_Cached_bytes)) / node_memory_MemTotal_bytes * 100)
2. Collect cpu
1. Collect cpu utilization: use the function of irate to calculate the instantaneous growth rate per second and instantaneous growth rate of the authentic time series of distance vectors.
Irate (node_cpu_seconds_total {instance= "$ip"} [5m])
2. Average utilization rate of avg
Avg (irate (node_cpu_seconds_total {job= "server", mode= "idle"} [5m])) * 100
3. Average percentage of usage
Avg (irate (node_cpu_seconds_total {job= "server", mode= "idle"} [5m])) * 100
3. Disk utilization
1. Percentage of disk utilization, idle
Free space / total space
Node_filesystem_files_free {mountpoint= "/", device= "/ dev/mapper/centos-root", job= "server"} / node_filesystem_size_bytes {mountpoint= "/", device= "/ dev/mapper/centos-root", job= "server"} * 100
2. Remaining disk utilization
Node_filesystem_files_free {mountpoint= "/", device= "/ dev/mapper/centos-root"} / node_filesystem_size_bytes {mountpoint= "/", device= "/ dev/mapper/centos-root"} * 100
4. Disk io
1. The growth rate of io in five minutes
Irate (node_disk_io_time_seconds_ Total [5m])
2. Average within five minutes
Avg (irate (node_disk_io_time_seconds_ Total [5m])) * 100
3. Percentage of disk io idle
Avg (irate (node_disk_io_time_seconds_ Total [5m])) * 100)
5. Network
1. The growth rate of the network card within five minutes
Node_network_receive_bytes_total {device=~ "ens160 | docker0"} [5m]
2. Average within five minutes
Round (irate (node_network_receive_bytes_total {device=~ "ens160 | docker0"} [5m]) / 1024)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.