安装Grafana
# 地址 https://grafana.com/grafana/download wget -O /opt/tgzs/grafana-7.5.1-1.x86_64.rpm https://dl.grafana.com/oss/release/grafana-7.5.1-1.x86_64.rpm sudo yum install grafana-7.5.1-1.x86_64.rpm
mysql中创建Grafana库
CREATE DATABASE IF NOT EXISTS grafana DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
修改Grafana配置
[root@prome-master01 ~]# vim /etc/grafana/grafana.ini type = mysql host = 127.0.0.1:3306 name = grafana user = root # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;""" password = 123123
启动服务
systemctl start grafana-server systemctl enable grafana-server systemctl status grafana-server 查看日志 有无报错 tail -f /var/log/grafana/grafana.log 默认 用户密码 :admin/admin http://grafana.prome.wisrt.com:3000/?orgId=1