在mysql数据库中创建gr
vim /etc/grafana/grafana.ini
[database] type = mysql host = 10.6.8.227:13306 name = root user = root password =mysql url = mysql://root:mysql@10.6.8.227:13306/grafana
docker run -d -p 13000:3000 --name grafana1 -v /home/grafana/grafana.ini:/etc/grafana/grafana.ini grafana/grafana
会自动生成表结构