Prometheus安装

时间:2023-02-10 11:58:38

1、prometheus下载

https:/prometheus.io/download/

Prometheus安装

2、查看文件类型

[root@hadoop3 home]# file prometheus-2.37.1.linux-amd64.tar.gz

Prometheus安装

指定解压路径解压文件

[root@hadoop3 home]# tar xf prometheus-2.37.1.linux-amd64.tar.gz -C /opt/

[root@hadoop3 prometheus]# ./prometheus --version

Prometheus安装

3、后台启动prometheus

[root@hadoop3 prometheus]# ./prometheus &

Prometheus安装

4、此时打开网页就可以访问我们搭建的prometheus监控平台了

http://192.168.0.112:9090/

Prometheus安装

5、修改配置文件设置成本机IP

[root@hadoop3 prometheus]# vim prometheus.yml

Prometheus安装

6、修改成服务器IP

Prometheus安装

监控本机

Prometheus安装

7、查看监控项

Prometheus安装