grafana-plugin-sdk-rust
grafana-plugin-sdk-rust copied to clipboard
Grafana Plugin SDK for Rust
This PR allows plugins to specify the concrete type of the JSON/secure JSON data decoded into the `PluginContext.instance_settings` field on incoming requests. They do so by implementing a new `GrafanaPlugin`...
WIP, not even tested, feels like it might just work though? TODO: - [ ] Finish off `Frame::from_arrow` so it actually populates the chunks - [ ] Test it out...
This makes the `DataService::Stream` associated type generic over a lifetime bound by `Self`. This means users can borrow data from `self` in their implementations even if they reference it in...
Probably using [mdBook](https://rust-lang.github.io/mdBook/index.html). This should cover a bunch of things, such as general environment/Grafana/plugin setup, adding individual services, using the macros, best practices, etc.
Examples can be run. How do you do that
The `FieldType`, `IntoFieldType`, `IntoField`, `IntoOptField` and `ArrayIntoField` traits seem a bit overkill - try to find a more elegant way to express them.