Prometheus部署

Prometheus官⽹https://prometheus.io/download/

1.文件下载到本地,用Windows cmd 上传到linux,ip为linux ip 地址

2.linux操作

完成效果:

2.Node exporte

Node exporte主要⽤于采集被监控主机上的cpu负载,内存的使⽤情况,⽹络等数据,并上报数据给Prometheus server。从Prometheus官⽹https://prometheus.io/download/ 下载node_exporter,下载之后解压缩然后直接运⾏即可。

复制代码
[root@localhost ~]# tar zxvf node_exporter-1.5.0.linux-amd64.tar.gz
[root@localhost ~]# mv node_exporter-1.5.0.linux-amd64 /usr/local/node_exporter
[root@localhost ~]# cd /usr/local/node_exporter
[root@localhost node_exporter]# nohup ./node_exporter &

运⾏起来以后 我们使⽤"netstats -tnlp"命令可以来看下 node_exporter进程的状态,node_exporter默认监听在9100端⼝,要关闭被监控机上的防⽕墙、selinux等,确保node_exporter可以响应prometheus_server发过来的HTTP_GET请求,也可以响应其他⽅式的HTTP_GET请求,最简单的⽅式,在浏览器打开:http://"node_exporter所在服务器的IP地址":9100/metrics , 看是否有初始Node Exporter监控指标⽣成

相关推荐
2401_840192271 天前
k8s的crd、operator、cr分别是什么?
运维·分布式·kubernetes·prometheus
零壹AI实验室2 天前
用AI 10分钟搭建一个监控系统:Prometheus + Grafana 实战
人工智能·grafana·prometheus
KK溜了溜了3 天前
Prometheus配置监控项和告警规则
linux·grafana·prometheus
Devin~Y3 天前
大厂Java面试实录:Spring Boot微服务 + Redis/Kafka + Prometheus/Jaeger + RAG/Agent(小Y水货版)
java·spring boot·redis·spring cloud·kafka·prometheus·jaeger
Elastic 中国社区官方博客3 天前
为 Elasticsearch 带来火力:增加原生 Prometheus API 支持
大数据·数据库·elasticsearch·搜索引擎·信息可视化·prometheus
Dovis(誓平步青云)4 天前
《如何通过prometheus-webhook-dingtalk解决 Alertmanager 原生不支持钉钉 Webhook问题》
人工智能·生成对抗网络·钉钉·运维开发·prometheus
KK溜了溜了5 天前
Prometheus监控主机,Grafana成图
grafana·prometheus
伏加特遇上西柚5 天前
Loki+Alloy+Grafana日志采集部署
java·linux·服务器·spring boot·grafana·prometheus
川石课堂软件测试6 天前
软件测试|常见面试题整理
数据库·python·jmeter·mysql·appium·postman·prometheus
蜀道山老天师6 天前
云原生监控入门:监控基础概念 + SLI/SLO/SLA 详解 + Prometheus 从零安装配置
linux·运维·云原生·prometheus