1. 安装

  1. cd /share
  2. wget https://grafanarel.s3.amazonaws.com/builds/grafana-4.1.2-1486989747.x86_64.rpm
  3. sudo su
  4. yum localinstall grafana-4.1.2-1486989747.x86_64.rpm

2. 配置

修改/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

3. 启动

  1. systemctl start grafana-server
  2. systemctl stop grafana-server
  3. systemctl disable grafana-server
  4. systemctl enable grafana-server
  5. systemctl status grafana-server

4. 验证

Web UIhttp://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
CSDN:Grafana基础知识+InfluxDB
https://blog.csdn.net/lifen0908/article/details/105246853
官网:Grafana官方模板
https://grafana.com/grafana/dashboards