服务器安装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

最后完成

相关推荐
ic爱吃蓝莓8 分钟前
破译 Linux 的“黑话”(常用命令解释)
linux·运维·服务器
云动课堂9 分钟前
【运维实战】企业级VSFTPD 文件服务 · 一键自动化部署方案 (适配银河麒麟 V10 /openEuler /CentOS)
运维·centos·自动化
charlie11451419110 分钟前
嵌入式Linux驱动开发(3)——内核模块机制 - Linux 的插件系统
linux·运维·开发语言·驱动开发·嵌入式硬件·学习
Elastic 中国社区官方博客14 分钟前
使用 Remote Write 将 Prometheus 指标发送到 Elasticsearch
大数据·运维·elasticsearch·搜索引擎·全文检索·prometheus
杨云龙UP23 分钟前
2000—CentOS Linux 7上部署Oracle 19c(19.3) RAC(RedHat/CentOS 7/8)
linux·运维·服务器·数据库·oracle·centos
江湖有缘27 分钟前
可视化Docker资源清理方案:PruneMate容器化部署实战
运维·docker·容器
applebomb36 分钟前
最新的OPENWRT与FRPC不兼容问题
运维·服务器
dovens1 小时前
httpslocalhostindex 配置的nginx,一刷新就报404了
运维·nginx
适应规律1 小时前
Docker和虚拟机
运维·docker·容器
A-刘晨阳1 小时前
k8s之镜像拉取策略
运维·docker·容器·kubernetes·运维开发·harbor