安装Grafana并配置Prometheus数据源

系统

本次安装使用的系统为Ubuntu22.04

系统 IP 服务
Ubuntu22.04 192.168.202.221 Prometheus, grafana, blackbox exporter, node exporter
Ubuntu22.04 192.168.202.222 node exporter
Ubuntu22.04 192.168.202.223 node exporter
Ubuntu22.04 192.168.202.224 node exporter

下载安装

sh 复制代码
sudo apt-get install -y adduser libfontconfig1 musl  
wget <https://dl.grafana.com/enterprise/release/grafana-enterprise_10.2.0_amd64.deb>  
sudo dpkg -i grafana-enterprise_10.2.0_amd64.deb

其他Linux发行版可参考下载链接

启动服务

sh 复制代码
systemctl start grafana-server
systemctl enable grafana-server  # 开机自启动

查看端口

grafana默认监听的端口为3000

sh 复制代码
root@node1:~# ss -tunlp
Netid    State     Recv-Q    Send-Q         Local Address:Port          Peer         users:(("sshd",pid=1078,fd=4))               
tcp      LISTEN    0         4096                       *:3000                     *:*        users:(("grafana",pid=12355,fd=15))          

登录

默认用户admin,默认密码admin

添加数据源

grafana带了一些dashboard,可以导入

外部导入dashboard

可以从如下地址下载Grafana dashboard grafana.com/grafana/das...

下载dashboard

导入node exporter dahsboard后查看效果

相关推荐
jbtianci7 小时前
Spring Boot管理用户数据
java·spring boot·后端
那我掉的头发算什么7 小时前
【Mybatis】Mybatis-plus使用介绍
服务器·数据库·后端·spring·mybatis
会算数的⑨7 小时前
Kafka知识点问题驱动式的回顾与复习——(一)
分布式·后端·中间件·kafka
Hx_Ma167 小时前
SSM搭建(三)Spring整合SpringMVC框架
java·后端·spring
William_cl7 小时前
ASP.NET路由长度约束精讲:[HttpGet (“{name:minlength (3)}“)] 字符长度限制吃透,附避坑指南 + 实战代码
后端·asp.net
我命由我123457 小时前
Java 泛型 - Java 泛型通配符(上界通配符、下界通配符、无界通配符、PECS 原则)
java·开发语言·后端·java-ee·intellij-idea·idea·intellij idea
szhf787 小时前
SpringBoot Test详解
spring boot·后端·log4j
无尽的沉默7 小时前
SpringBoot整合Redis
spring boot·redis·后端
摸鱼的春哥7 小时前
春哥的Agent通关秘籍07:5分钟实现文件归类助手【实战】
前端·javascript·后端