centos安装普罗米修斯和Grafana

安装普罗米修斯(以下地址无法打开,请联系1065588611@qq.com,索要最新ip地址)

1
2
3
4
5
6
mkdir prometheus
cd prometheus
wget  http://2v7740o742.vicp.fun:2024/upload/2024/02/2gu5npn0ocif8rdb8ioqbihq8o.gz
mv 2gu5npn0ocif8rdb8ioqbihq8o.gz  prometheus.tar.gz
tar -zxvf prometheus.tar.gz
cp -R prometheus-2.45.3.linux-amd64 /usr/local/prometheus

  

vim /usr/lib/systemd/system/prometheus.service

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Prometheus
Documentation=https://prometheus.io/
After=network.target
 
[Service]
Type=simple
User=root
WorkingDirectory=/usr/local/prometheus
ExecStart=/usr/local/prometheus/prometheus
Restart=on-failure
 
[Install]
WantedBy=multi-user.target

  

1
2
3
4
启动服务和设置开机自动启动
systemctl daemon-reload
systemctl enable prometheus.service
systemctl start prometheus.service

  页面输入http://47.100.61.43:9090/targets?search=,效果图如下所示

 安装 Grafana

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mkdir Grafana
cd Grafana
wget http://2v7740o742.vicp.fun:2024/upload/2024/02/6teeejrvjog95ooba760ftdaeu.rpm
 
mv 6teeejrvjog95ooba760ftdaeu.rpm  grafana.rpm
 
yum install -y grafana.rpm
 
 
systemctl enable grafana-server
systemctl start grafana-server
 
启动后,可以使用 systemctl status grafana-server 命令查看状态,出现下图界面,表示启动成功
 
 
在浏览器访问地址:http://47.100.61.43:3000/,出现下图界面,说明 Grafana 已经安装成功了

  

 

默认账号和密码是admin/admin

打开后的页面

 安装 node_exporter

1
2
3
4
5
6
mkdir node_exporter
cd node_exporter
wget  http://2v7740o742.vicp.fun:2024/upload/2024/03/vndi0t81nehffok4fp0uaj6924.gz
mv  vndi0t81nehffok4fp0uaj6924.gz  node_exporter-1.6.1.linux-amd64.tar.gz
tar -zxvf node_exporter-1.6.1.linux-amd64.tar.gz
cp -R node_exporter-1.6.1.linux-amd64 /usr/local/node_exporter

  vim /usr/lib/systemd/system/node_exporter.service

1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=node_exporter
After=network.target
 
[Service]
Type=simple
User=root
ExecStart=/usr/local/node_exporter/node_exporter
Restart=on-failure
 
[Install]
WantedBy=multi-user.target

  

1
2
3
4
5
6
7
8
设置开机自动启动
 
systemctl daemon-reload
systemctl enable node_exporter.service
systemctl start node_exporter.service
 
打开页面
http://47.100.61.43:9100/

  

 

posted @   不忘初心2021  阅读(35)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2023-03-06 angularJs的作用域对象和控制器,依赖对象,依赖注入
点击右上角即可分享
微信分享提示