centos9(linux):安装prometheus客户端node_exporter 1.8.2

一,官网地址

https://www.prometheus.io/download/

如图:

二,下载

通过wget从命令行下载:

[root@web prometheus]# wget https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gz

三,安装:

1, 解压:

[root@web prometheus]# tar -zxvf node_exporter-1.8.2.linux-amd64.tar.gz 

2,移动到安装目录:

[root@web prometheus]# mv node_exporter-1.8.2.linux-amd64 /usr/local/soft/

四,用systemctl管理node_exporter服务

1,编辑服务文件:

[root@web prometheus]# vi /lib/systemd/system/node_exporter.service

内容:

[Unit]
Description=node_exporter
Documentation=https://prometheus.io/
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/soft/node_exporter-1.8.2.linux-amd64/node_exporter
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always

[Install]
WantedBy=multi-user.target

2,加载服务文件

[root@web prometheus]# systemctl daemon-reload

启动服务

[root@web prometheus]# systemctl start node_exporter.service 

五,测试效果:

1,用ss查看9100端口:

[root@web prometheus]# ss -lntp | grep 9100
LISTEN 0      4096               *:9100             *:*    users:(("node_exporter",pid=1550540,fd=3)) 

 

posted @   刘宏缔的架构森林  阅读(149)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
历史上的今天:
2022-10-28 python:pip升级pip本身和setuptools(Python 3.7.15)
2022-10-28 centos8(linux):编译升级python版本:从python3.6到python3.11
2022-10-28 javascript:innerText、innerHTML、textContent的区别(chrome 107.0.5304.62)
点击右上角即可分享
微信分享提示