Plugins 〉Grafana Data Source Backend Plugin Template

Data Source
grafana

Grafana Data Source Backend Plugin Template

  • Overview
  • Installation
  • Change log
  • Related content

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
    
  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

Installing Grafana Data Source Backend Plugin Template on Grafana Cloud:

For more information, visit the docs on plugin installation.

Changelog

Entries

[1.0.18] 2021/05/28

  • Use new plugin changelog parsing
  • Try again at a build
  • And yet another new build
  • You better believe it!
  • This is my fifth try, I'm annoyed

[1.0.17] 2021/3/25

  • use new integration bot

[1.0.16] 2021/3/18

  • use new publisher - again

[1.0.15] 2021/3/18

  • use new publisher

[1.0.14] 2021/3/18

  • Should have arch.info files

[1.0.13] 2021/3/18

  • Use Drone extension

[1.0.12] 2021/3/18

  • Testing

1.0.2

Add production deploy steps

1.0.1

Add deploy staging steps

1.0.0 (Unreleased)

Initial release.