Grafana下载解压
下载地址:https://grafana.com/grafana/download
之前都是自己下载二进制运行,这次换换口味,改成下载源,然后直接安装
//centos的
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.5.4-1.x86_64.rpm sudo yum install grafana-enterprise-8.5.4-1.x86_64.rpm
启动
systemctl start grafana-server systemctl status grafana-server
输入 localhost:3000,即可看到grafana界面
登陆
默认账号密码为 admin/admin
配置prometheus
1:找到新增DataSource数据来源
2:选择prometheus
3:填写信息并保存
4:下载prometheus监控报表
下载地址:https://grafana.com/grafana/dashboards/
搜索node_exporter下载,也可以直接下载:https://grafana.com/api/dashboards/11074/revisions/1/download
导入grafana
导入成功,显示为: