In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, the editor will bring you an article about node monitoring based on prometheus11-k8s-node. The editor thinks it's pretty good, so I'll share it for you as a reference. Let's follow the editor and have a look.
1.node contact deployment node_exporter
Wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
2. Promethesus users start the addition of each user
Mv node_exporter-0.18.1.linux-amd64 / usr/local/node_ exporter [root @ zabbix-server system] # cat node_ exporter.service [unit] Description=node_exporterDocumentation= https://prometheus.io/After=network.target[Service]Type=simpleUser=prometheusExecStart=/usr/local/node_exporter/node_exporterRestart=on-failure[Install]WantedBy=multi-user.target[root@zabbix-server system] # pwd/usr/lib/systemd/systemsystemctl daemon-reloadsystemctl start node_exporter
3. View metrics
4. Edit the configuration file of prometheus and use
Prometheus-configmap.yamlkubectl apply-f prometheus-configmap.yaml
5. View prometheus Monitoring
6. Add template 9276
7. Add
8. Check the dashboard some values do not come out of their own edit options can be adjusted will come out
Note:
For several SQL of prometheus, it is recommended to write down the CPU utilization in front of the above figure: 100-(avg (irate (node_cpu_seconds_total {mode= "idle"} [5m])) by (instance) * 100) memory utilization: 100-(node_memory_MemFree_bytes+node_memory_Cached_bytes+node_memory_Buffers_bytes) / node_memory_MemTotal_bytes * 100 disk utilization: 100-(node_filesystem_free_bytes {mountpoint= "/") Fstype=~ "ext4 | xfs"} / node_filesystem_size_bytes {mountpoint= "/", fstype=~ "ext4 | xfs"} * 100)
The above are the details of node monitoring based on prometheus11-k8s-node, and the detailed usage needs to be used by everyone through hands-on experiments. If you want to know more, you are welcome to follow the industry information channel!
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.