CentOS 6部署Prometheus node exporter

  1. 下载

github.com/prometheus/...

选择版本:

node_exporter-1.9.1.linux-amd64.tar.gz

  1. 解压安装
shell 复制代码
mkdir /opt/prometheus

tar -xvf node_exporter-*.linux-amd64.tar.gz -C /opt/prometheus/

mv /opt/prometheus/node_exporter-1.9.1.linux-amd64/ /opt/prometheus/node_exporter
  1. 设置自启动
shell 复制代码
vim /etc/init.d/node_exporter
shell 复制代码
#!/bin/bash
# chkconfig: 2345 10 90
# description: node_exporter
# 20220630
case "$1" in
start)
nohup /opt/prometheus/node_exporter/node_exporter >/dev/null 2>&1 &
echo "node_exporter started"
;;
stop)
ps -ef | grep node_exporter | grep -v grep | awk '{print "kill -9 "$2}' | sh
echo "node_exporter stoped"
;;
esac
shell 复制代码
chmod +x /etc/init.d/node_exporter
chkconfig --add node_exporter
  1. 运行
shell 复制代码
nohup /opt/prometheus/node_exporter/node_exporter >/dev/null 2>&1 &
相关推荐
Patrick_Wilson9 天前
修好 bug 只是开始:一次由监控需求反向重构日志结构的复盘
前端·监控·数据可视化
阿里云云原生11 天前
终结前端“黑盒”难题:通过 Session Replay 与三维热力图实现像素级用户行为洞察
云原生·监控
带娃的IT创业者11 天前
监控并非安全:当隐私成为技术的祭品
java·开发语言·安全·数据安全·监控·隐私保护·加密技术
翼龙云_cloud17 天前
阿里云国际代理商:阿里云 ECS 全维度监控配置教程
运维·阿里云·云计算·监控
SkyWalking中文站18 天前
认识 Horizon UI · AI Assistant:用日常语言查询你的可观测性数据
运维·监控·自动化运维
SkyWalking中文站18 天前
认识 Horizon UI · 17/17:安装与迁移
运维·监控·自动化运维
SkyWalking中文站18 天前
认识 Horizon UI · 16/17:八种语言的本地化
运维·监控·自动化运维
七夜zippoe18 天前
DolphinDB生产指标监控:KPI实时计算
监控·生产指标·kpi·dolphindb·实时 计算
SkyWalking中文站19 天前
认识 Horizon UI · 15/17:用模板定制控制台
运维·监控·自动化运维
笨鸟先飞的橘猫20 天前
skynet监控实践
监控·skynet