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 &
相关推荐
Flynn Liang1 天前
上线后怎么排查 AI 调用?Spring AI Observability:token/延迟/成本埋点与全链路追踪
java·人工智能·spring·监控·可观测性·observability·springai
青山科技分享12 天前
跨境电商卖家如何用AI监控竞品价格和动态?
监控·卖家·盯着
鸿观工坊14 天前
Prometheus 监控报告编写:SLO报告
监控
vivo互联网技术15 天前
域名埋点零侵入实时校验实践:基于代理转发与规则驱动的工具设计
前端·测试·监控·代理·埋点
Sayai15 天前
Elasticsearch Rollup 汇算索引实战:监控指标多粒度预聚合查询,附 painless 时间窗取每日最新值
大数据·运维·elasticsearch·搜索引擎·性能优化·监控
数据库小学妹17 天前
数据库运维五级成熟度:监控、备份、高可用怎么串起来
运维·数据库·监控
fengkai454521 天前
十三、Zabbix 监控
运维·服务器·zabbix·监控·网络设备
鸿观工坊1 个月前
Prometheus 内置指标:每次抓取自动生成了哪些数据
监控
cws2004011 个月前
监控摄像头选型指南
运维·网络·监控