This template is a starting point for building Grafana data source plugins.
Grafana supports a wide range of data sources, including Prometheus, MySQL, and even Datadog. There’s a good chance you can already visualize metrics from the systems you have set up. In some cases, though, you already have an in-house metrics solution that you’d like to add to your Grafana dashboards. Grafana data source plugins enable you to integrate such solutions with Grafana.
A data source backend plugin consists of both frontend and backend components.
-
Install dependencies:
npm install
-
Build plugin in development mode or run in watch mode:
npm run dev
-
Build plugin in production mode:
npm run build
-
Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go go mod tidy
-
Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
-
List all available Mage targets for additional commands:
mage -l
- Grafana plugins documentation
- Build a data source plugin tutorial
- Grafana UI Library - UI components to help you build interfaces using Grafana Design System