Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

grafana/grafana-starter-datasource-backend

Folders and files

NameName
Last commit message
Last commit date
Oct 18, 2021
Jul 15, 2021
Aug 20, 2021
May 15, 2020
May 15, 2020
Feb 3, 2021
Apr 24, 2020
May 14, 2020
Oct 19, 2022
May 28, 2021
May 28, 2021
May 19, 2021
Oct 20, 2022
May 19, 2021
Oct 20, 2022

⚠️ Deprecated!

This repository is deprecated.
A more up-to-date version of examples is available here: https://github.com/grafana/grafana-plugin-examples

Available examples:


Grafana Data Source Backend Plugin Template

Build

This template is a starting point for building Grafana Data Source Backend Plugins

What is Grafana Data Source Backend Plugin?

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 enables integrating such solutions with Grafana.

For more information about backend plugins, refer to the documentation on Backend plugins.

Getting started

A data source backend plugin consists of both frontend and backend components.

Frontend

  1. Install dependencies

    yarn install
  2. Build plugin in development mode or run in watch mode

    yarn dev

    or

    yarn watch
  3. Build plugin in production mode

    yarn build

Backend

  1. 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
  2. Build backend plugin binaries for Linux, Windows and Darwin:

    mage -v
  3. List all available Mage targets for additional commands:

    mage -l

Learn more