资源规划
组件 | bigdata-node1 | bigdata-node2 | bigdata-node3 |
---|---|---|---|
OS | centos7.6 | centos7.6 | centos7.6 |
Grafana | grafana | N.A | N.A |
安装介质
版本:grafana-5.4.0-1.x86_64.rpm
下载:https://dl.grafana.com/oss/release/grafana-5.4.0-1.x86_64.rpm
安装Grafana
注意:使用root用户安装。
sudo su
cd /share
wget https://dl.grafana.com/oss/release/grafana-5.4.0-1.x86_64.rpm
yum localinstall grafana-5.4.0-1.x86_64.rpm
配置
修改/etc/grafana/grafana.ini文件,将enable anonymous access和allow_embedding设置为ture,否则前端页面访问grafana的时候会无法访问,并且修改完成之后重启grafana服务。
sudo vi /etc/grafana/grafana.ini
配置如下:
#################################### Anonymous Auth ##########################
[auth.anonymous]
# enable anonymous access
;enabled = true
启动Grafana
systemctl start grafana-server
systemctl stop grafana-server
systemctl enable grafana-server
systemctl status grafana-server
验证
Web UI:http://bigdata-node1:3000
账户口令:admin/admin
参考
博客园:Grafana模板操作指南
https://www.cnblogs.com/xuliuzai/p/11134714.html
CSDN:Grafana Dashboard全面解析
https://blog.csdn.net/zzq900503/article/details/103619565
官网:Grafana官方模板
https://grafana.com/grafana/dashboards
CSDN:Grafana基础知识+InfluxDB
https://blog.csdn.net/lifen0908/article/details/105246853