Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paveldanilin/grafana-backend-plugin-example

Usage of the Grafana plugin SDK
https://github.com/paveldanilin/grafana-backend-plugin-example

datasource grafana grafana-plugin grafana-plugin-sdk pluginv2 sdk

Last synced: 25 days ago
JSON representation

Usage of the Grafana plugin SDK

Awesome Lists containing this project

README

        

## Test resource plugin for Grafana 6.7.x

Just an example of usage [grafana-plugin-sdk](https://github.com/grafana/grafana-plugin-sdk-go) to build a resource plugin.

### Build

`go build -o test-plugin_windows_amd64.exe ./pkg`

### Install
Copy `/dist` folder to a Grafana plugin directory and restart Grafana service.

### Test

`http:///api/plugins/grafana-backend-plugin/resources`

The result
```json
{
"code": 3345,
"message": "You are awesome"
}
```