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

相关推荐
杜子不疼.19 小时前
Prometheus Pushgateway:批量离线任务指标监控实践
prometheus
我还为发觉2 天前
Linux 监控可视化|Prometheus+Node Exporter 一键部署教程
linux·运维·prometheus
Sean‘2 天前
AKS 集群 Helm 部署 Prometheus + Grafana 监控平台
grafana·prometheus
野猪佩挤2 天前
HPA自定义指标(通过请求数量扩缩)
kubernetes·prometheus
王的宝库2 天前
Kubernetes 监控黄金搭档:Prometheus + Grafana
kubernetes·grafana·prometheus
Brandon汐2 天前
HAProxy+Keepalived+MariaDB+tomcat+Prometheus+Grafana高可用部署
云原生·tomcat·grafana·prometheus·mariadb·keepalived·haproxy
槐序深巷里打雨伞的人3 天前
k8s中部署prometheus并监控k8s集群以及nginx案例
nginx·kubernetes·prometheus
我爱学习好爱好爱3 天前
Ansible 自动化部署Prometheus + Alertmanager + Grafana实战(Rockylinux9.6)
自动化·ansible·prometheus
IT界的老黄牛3 天前
Prometheus + Grafana + AlertManager 监控体系搭建:Docker 一把梭
运维·grafana·prometheus
qq_297574675 天前
K8s系列第十三篇:K8s 监控告警实战:Prometheus + Grafana 部署与配置
kubernetes·grafana·prometheus