Replies: 1 comment 10 replies
-
This looks awesome! I'm not familiar with Grafana plugins, but if there's anything I can do on the Trustfall end to make this easier for you to build, I'm all ears! |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I thought it could be nice to allow trustfall queries to be executed from Grafana. So, I jumped into the rabbit hole and drafted a simple architecture that could support that.
Basically two things are required to enable this use case. A Grafana-Plugin that enables trustfall Datasources and a way to expose trustfall adapters via HTTP.
The Grafana plugin would connect to the server and send the queries from Grafana. The plugin could also provide a fancy query editor, but that's for a later version. In theory, it is also possible to bundle the query engine in the Grafana-Plugin using wasm, but this would require users to replace the plugins every time the adapter changes.
A standardized template webserver that is generic over the exposed adapter could be a nice fit for exposing Adapters over HTTP (possibly implement HttpServiceFactory for an Adapter, so an adapter can be easily exposed as a HTTP route via actix-web).
I might implement this myself, depending on the free time available.
I wanted to put it out there, so others can provide further ideas and so that I don't forget these thoughts.
Beta Was this translation helpful? Give feedback.
All reactions