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监控指标⽣成

相关推荐
成为你的宁宁3 天前
【基于 Prometheus Operator 监控 K8s控制器、调度器、代理组件】
kubernetes·prometheus
溜达的大象4 天前
服务器挂了等用户报障?我用Prometheus搭了一套监控告警,服务器出状况第一时间通知我
服务器·php·prometheus
tudoSearcher4 天前
日志、指标、链路追踪:可观测性三支柱深度解析
运维·服务器·网络·prometheus
IT策士4 天前
第 41 篇 k8s之监控:Metrics Server 与 Prometheus 快速上手
容器·kubernetes·prometheus
Junsir大斗师4 天前
rocky9.7搭建grafana+loki+prometheus+alloy+node_exporter运维监控平台
linux·运维·grafana·prometheus
Plastic garden4 天前
Docker Compose 的 RuoYi nginx exporter Prometheus + Alertmanager + 钉钉告警
nginx·docker·prometheus
炸炸鱼.4 天前
云原生环境 Prometheus 企业级监控实战指南
云原生·prometheus
Peace5 天前
【Prometheus】
linux·运维·prometheus
青皮桔5 天前
Prometheus + Grafana实现服务器监控
服务器·grafana·prometheus
liux35286 天前
Prometheus告警规则设计:从入门到不半夜被叫醒
prometheus