#back-end #sdk #grafana #macro #plugin #build

macro grafana-plugin-sdk-macros

Convenience macros for the Grafana backend plugin SDK

7 unstable releases

0.4.3 Jan 18, 2024
0.4.2 Sep 19, 2022
0.3.0 Apr 14, 2022
0.2.0 Mar 16, 2022
0.1.0 Dec 8, 2021

#1284 in Procedural macros

Download history 14/week @ 2024-01-14 9/week @ 2024-02-04 7/week @ 2024-02-11 51/week @ 2024-02-25 100/week @ 2024-03-03 22/week @ 2024-03-10 4/week @ 2024-03-17 64/week @ 2024-03-31 252/week @ 2024-04-07 137/week @ 2024-04-14

453 downloads per month
Used in grafana-plugin-sdk

MIT/Apache

23KB
258 lines

Grafana Plugin SDK for Rust

Build Status docs.rs crates.io

This is a Rust implementation of the Grafana Plugin SDK for Rust, similar to the Grafana Plugin SDK for Go. It can be used to build backend plugins for Grafana.

Current state

This SDK is still in development. The protocol between the Grafana server and the plugin SDK is considered stable, but the convenience functionality in the SDK may experience breaking changes.

Disclaimer: this Rust SDK is not (yet) an official Grafana Labs project! Use the Go SDK if higher maintainability and support standards are required. That being said, this crate will adhere to semantic versioning, and the authors will aim to respond to issues as far as possible.

The grafana-sample-backend-plugin-rust repository contains a sample backend plugin with a backend written in Rust, along with a docker-compose setup with automatic plugin reloading.

Developing

Releasing

Releases are handled using cargo-release. Run the following to dry-run release a new version of all crates:

cargo release <major|minor|patch> --workspace

If everything looks OK, add the --execute flag to go through with the release.

License

The Rust SDK is licensed under either of the following, at your option:

Dependencies

~275–720KB
~17K SLoC