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/02 Report--
To monitor CPU, memory, disk, I/O and other information of Kubernetes Engine, first install node_exporter. node_exporter is used for machine system data collection.
(1) Download node_exporter
https://prometheus.io/download/
shell> cd /Download/
shell> wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
(2) Decompress installation
shell> tar -xvf node_exporter-0.18.1.linux-amd64.tar.gz
shell>cd node_exporter-0.18.1.linux-amd64
shell> mv node_exporter-0.18.1.linux-amd64 node_exporter
shell> chown -R prometheus.prometheus node_exporter
shell> systemctl restart node_exporter
shell>systemctl status node_exporter
shell>netstat -tunlp | grep node_exporter
(3) Create systemd service
shell>cat > /etc/systemd/system/node_exporter.service systemctl daemon-reload
shell> systemctl start node_exporter #Start node_exporter service
shell> systemctl status node_exporter
Add job to prometheus_server
shell> vim /Download/prometheus/prometheus.yml
job_name: 'docker39'
scrape_interval: 5s
static_configs:targets: ['10.10.204.39:9100']
labels:
shell>systemctl restart prometheus #Restart prometheus service
(5) Check whether the prometheus console gets the data
Browser->x. x.x:9090 ->status->targets You can see the monitored nodes
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.