Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

(2) node_exporter deployment to monitor container hosts

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report