资源规划

组件 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用户安装。

  1. sudo su
  2. cd /share
  3. wget https://dl.grafana.com/oss/release/grafana-5.4.0-1.x86_64.rpm
  4. yum localinstall grafana-5.4.0-1.x86_64.rpm

配置

修改/etc/grafana/grafana.ini文件,将enable anonymous access和allow_embedding设置为ture,否则前端页面访问grafana的时候会无法访问,并且修改完成之后重启grafana服务。

  1. sudo vi /etc/grafana/grafana.ini

配置如下:

  1. #################################### Anonymous Auth ##########################
  2. [auth.anonymous]
  3. # enable anonymous access
  4. ;enabled = true

启动Grafana

  1. systemctl start grafana-server
  2. systemctl stop grafana-server
  3. systemctl enable grafana-server
  4. 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