grafana 开发参考资料

最近在看pmm的实现,因为pmm 的dashboard 是基于grafana的,所以就整理了一些关于grafana开发的一些资料

官方参考文档

https://grafana.com/docs/grafana/latest/developers/developer-resources/

扩展开发的一些技术参考

https://grafana.com/tutorials/

一些说明

官方推荐的是使用grafana-toolkit 来开发扩展,同时也可以方便的进行构建以及打包,注意早期版本是基于angular 开发的,官方推荐的是
基于react的开发,同时早期版本的还是支持的,对于开发的扩展的测试,推荐的运行方式是容器
参考运行

 
docker run -d -p 3000:3000 -v "$(pwd)"/grafana-plugins:/var/lib/grafana/plugins --name=grafana grafana/grafana

同时grafana 常见的开发模型包含了datasource,panels 以及apps

参考资料

https://grafana.com/docs/grafana/latest/plugins/developing/development/
https://grafana.com/tutorials/build-a-panel-plugin/#2
https://grafana.com/docs/grafana/latest/plugins/developing/apps/
https://grafana.com/docs/grafana/latest/plugins/developing/panels/
https://grafana.com/docs/grafana/latest/plugins/developing/datasources/
https://github.com/grafana/simple-app-plugin

原文地址:https://www.cnblogs.com/rongfengliang/p/12825726.html