前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Linux部署granafa+node_exporter+prometheus监控

Linux部署granafa+node_exporter+prometheus监控

作者头像
cywhat
发布2022-11-22 21:38:03
4780
发布2022-11-22 21:38:03
举报
文章被收录于专栏:cywhatcywhat

1、下载安装Node_exporter

代码语言:shell
复制
#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

代码语言:shell
复制
#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

eg:
    - 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

代码语言:shell
复制
#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

eg:
    #根据自己需要修改
    http_port = 9200   
      

#5.启动并常驻后台,修改端口为9200  grafana-server
/usr/local/soft/grafana/bin/grafana-server &

4.web访问granafa-url

PS:默认用户名密码都是admin,第一次登录需要修改密码

/img/img42.png
/img/img42.png

5.添加数据源

/img/img43.png
/img/img43.png

6.选择prometheus

/img/img44.png
/img/img44.png

7.输入prometheus-url&port

/img/img45.png
/img/img45.png

8.官网下载仪表盘

下载中文版node仪表盘

下载JSON包

/img/img46.png
/img/img46.png

9.上传JSON包到granafa

/img/img47.png
/img/img47.png
/img/img48.png
/img/img48.png

10.查看仪表监控图

/img/img49.png
/img/img49.png
本文参与?腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-01-20,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体分享计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1、下载安装Node_exporter
  • 2.下载安装prometheus
  • 3.下载安装granafa
  • 4.web访问granafa-url
  • 5.添加数据源
  • 6.选择prometheus
  • 7.输入prometheus-url&port
  • 8.官网下载仪表盘
  • 9.上传JSON包到granafa
  • 10.查看仪表监控图
相关产品与服务
Grafana 服务
Grafana 服务(TencentCloud Managed Service for Grafana,TCMG)是腾讯云基于社区广受欢迎的开源可视化项目 Grafana ,并与 Grafana Lab 合作开发的托管服务。TCMG 为您提供安全、免运维 Grafana 的能力,内建腾讯云多种数据源插件,如 Prometheus 监控服务、容器服务、日志服务 、Graphite 和 InfluxDB 等,最终实现数据的统一可视化。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com