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

相关推荐
何中应2 天前
Promehteus如何指定数据路径
运维·prometheus·监控
Elastic 中国社区官方博客2 天前
使用 Remote Write 将 Prometheus 指标发送到 Elasticsearch
大数据·运维·elasticsearch·搜索引擎·全文检索·prometheus
要做一个小太阳2 天前
blockbox配置文件详解与优化
运维·网络·prometheus
Elastic 中国社区官方博客3 天前
Prometheus Remote Write 在 Elasticsearch 中的摄取原理
大数据·数据库·elasticsearch·搜索引擎·信息可视化·全文检索·prometheus
曲幽4 天前
FastAPI服务半夜又挂了?先别急着重启,查查你的数据库连接池“池子”是不是漏了
python·prometheus·fastapi·web·async·sqlalchemy·connection·pool
Dontla6 天前
高基数(High Cardinality)问题介绍(Prometheus、高基数字段、低基数字段)
前端·数据库·prometheus
川石课堂软件测试6 天前
requests接口自动化测试
数据库·python·功能测试·测试工具·单元测试·grafana·prometheus
没有口袋啦7 天前
基于 Prometheus + Grafana 的云原生立体化监控体系构建
grafana·prometheus
Dontla7 天前
Prometheus介绍(开源系统监控与告警工具)(时间序列数据库TSDB、标签化label-based多维分析、Pull模型、PromQL查询语言)
数据库·开源·prometheus