相关文章推荐
沉着的汉堡包  ·  全球资管500强榜单揭晓!10家中国公司冲进百强·  1 年前    · 
魁梧的单车  ·  中央纪委国家监委嘉奖名单·  3 年前    · 
深沉的伤疤  ·  药物价格·  3 年前    · 
刚分手的马铃薯  ·  逆时代潮流的产物,怎么就能活到现在?_搜狐汽 ...·  3 年前    · 
愤怒的豆芽  ·  mac如何更新系统到10.12-掘金·  3 年前    · 
Code  ›  Linux部署granafa+node_exporter+prometheus监控开发者社区
linux系统 prometheus
https://cloud.tencent.com/developer/article/2171921
任性的风衣
3 年前
作者头像
cywhat
0 篇文章

Linux部署granafa+node_exporter+prometheus监控

前往专栏
腾讯云
开发者社区
文档 意见反馈 控制台
首页
学习
活动
专区
工具
TVP
文章/答案/技术大牛
发布
首页
学习
活动
专区
工具
TVP
返回腾讯云官网
社区首页 > 专栏 > cywhat > Linux部署granafa+node_exporter+prometheus监控

Linux部署granafa+node_exporter+prometheus监控

作者头像
cywhat
发布 于 2022-11-22 21:38:03
230 0
发布 于 2022-11-22 21:38:03
举报

1、下载安装Node_exporter

#1.下载
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz
#2.解压
tar -zvxf node_exporter-1.3.1.linux-amd64.tar.gz 
#3.重命名
mv node_exporter-1.3.1.linux-amd64.tar.gz  /usr/local/soft/node_exporter
#4.启动并常驻后台,默认端口为9100
/usr/local/soft/node_exporte/node_exporter &

2.下载安装prometheus

#1.下载
wget https://github.com/prometheus/prometheus/releases/download/v2.33.0-rc.1/prometheus-2.33.0-rc.1.linux-amd64.tar.gz
#2.解压
tar -zvxf prometheus-2.33.0-rc.1.linux-amd64.tar.gz
#3.重命名
mv prometheus-2.33.0-rc.1.linux-amd64.tar.gz /usr/local/soft/prometheus
#4.修改node节点端口
vim prometheus.yml
    - job_name: "node"
    static_configs:
      - targets: ["localhost:9100"]     #这里的locahost可以更改为其他机器的ip,但是监控机需要和被监控机互相通信
#5.启动并常驻后台,默认端口为9090
/usr/local/soft/prometheus/prometheus --config.file=/usr/local/soft/prometheus/prometheus.yml  &

3.下载安装granafa

#1.下载
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.4.linux-amd64.tar.gz
#2.解压
tar -zxvf grafana-enterprise-8.3.4.linux-amd64.tar.gz
#3.重命名
mv grafana-8.3.4 /usr/local/soft/grafana
#4.修改granafa端口
cd /usr/local/soft/grafana/conf
vim defaults.ini
 
推荐文章
沉着的汉堡包  ·  全球资管500强榜单揭晓!10家中国公司冲进百强
1 年前
魁梧的单车  ·  中央纪委国家监委嘉奖名单
3 年前
深沉的伤疤  ·  药物价格
3 年前
刚分手的马铃薯  ·  逆时代潮流的产物,怎么就能活到现在?_搜狐汽车_搜狐网
3 年前
愤怒的豆芽  ·  mac如何更新系统到10.12-掘金
3 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号