- Have you ever had users that didn't know the details about how to make a query for a datasource, but needed information from that datasource?
- Do you just want to provide your users a drop down showing a model? Much like a folder structure?
The object datasource tries to solve the problem between query creators (those knowledgable about the a query language) and query consumers (those knowledgable about the data a query produces) Ideally, everyone interacting with data is knowledgable as both a query creator, and query consumer, but this is often not the case.
The object datasource allows query creators to create meaningful queryies, and associate them in a heiarchy that can be accessed by query consumers. Query consumers (those who are knowledgable about how to use and interpret the data) then have much easier access to the data they need to be successful.
Query creators write queries in the datasource config like so:
Query consumers access the data through a tree like heirarchy like so:
-
Install dependencies
yarn install
-
Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
-
Build plugin in production mode
yarn build
-
Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go
-
Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
-
List all available Mage targets for additional commands:
mage -l
- Build a data source backend plugin tutorial
- Grafana documentation
- Grafana Tutorials - Grafana Tutorials are step-by-step guides that help you make the most of Grafana
- Grafana UI Library - UI components to help you build interfaces using Grafana Design System
- Grafana plugin SDK for Go