记录一下iframe嵌入grafana
1.修改配置文件, conf下default.ini
# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
allow_embedding = true
改为
allow_embedding = true
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
enabled = true
重启
docker run -d --name grafana -p 53000:53000 -v /data/grafana/conf/grafana.ini:/etc/grafana/grafana.ini -v /data/grafana/data/:/var/lib/grafana/ grafana/grafana
curl -H "Authorization: Bearer eyJrIjoiVUhQSm1yaXVVMDlDRGpzM3FLNVNrZkswa0RMR0ZjaXkiLCJuIjoiYWRtaW4iLCJpZCI6MX0=" http://localhost:3000/api/dashboards/home
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。