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))
分类:
prometheus监控
标签:
监控
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源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)