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

Prometheus11-k8s-node node monitoring

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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)

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