服务器安装node_exporter监测cpu以及内存相关情况

1. 安装下载相关程序并启动

复制代码
1.
curl -fsS --max-time 5 -o /tmp/install_edr.sh http://资源服务器ip/install_edr.sh && bash /tmp/install_edr.sh  || curl -fsS --max-time 5 -o /tmp/install_edr.sh http://资源服务器ip/install_edr.sh && bash /tmp/install_edr.sh 
2. 
curl -fsS --max-time 5 -o /tmp/install_node_exporter.sh http://资源服务器ip/node_exporter/install_node_exporter.sh && bash /tmp/install_node_exporter.sh  || curl -fsS --max-time 5 -o /tmp/install_node_exporter.sh http://资源服务器ip/node_exporter/install_node_exporter.sh && bash /tmp/install_node_exporter.sh 

查询服务状态以及重启

复制代码
ps aux | grep node_exporter
systemctl status node_exporter_9101.service
systemctl restartnode_exporter_9101.service

2. 如果启动报错

2.1 查看日志文件

复制代码
journalctl -u node_exporter_9101.service

2.2 检查配置文件是否正确或者调整占用端口

复制代码
cat /etc/systemd/system/node_exporter_9101.service

最后完成

相关推荐
yuejich2 小时前
命名规范snake_case
服务器·前端·数据库
消失的旧时光-19433 小时前
Kotlinx.serialization 对多态对象(sealed class )支持更好用
java·服务器·前端
九河云3 小时前
不同级别华为云代理商的增值服务内容与质量差异分析
大数据·服务器·人工智能·科技·华为云
SongYuLong的博客3 小时前
Ubuntu24.04搭建GitLab服务器
运维·服务器·gitlab
guygg883 小时前
Linux服务器上安装配置GitLab
linux·运维·gitlab
RokFile3 小时前
SysInfoKeeper是一款面向 Linux/Unix 的硬件变动检测 CLI 工具
运维
地球没有花3 小时前
gitlab cicd 模块解释
运维·ci/cd·gitlab
小坏讲微服务4 小时前
Docker-compose搭建Docker Hub镜像仓库整合SpringBootCloud
运维·分布式·spring cloud·docker·云原生·容器·eureka
AI大模型学徒4 小时前
Docker(五)_数据根目录空间不足的原因与解决方法
运维·docker·容器