-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Angular to React #19
Comments
I had a look at the Grafana react plugin capabilities and it seems at the beginning of version 7 there were also statefull react components allowed but more current there are only stateless panels allowed. This prevents maintaining a connection the mqtt server and the subscription to the topics. Currently there is an emerging Grafana App API which consists of stateless panels and a statefull backend part. But this needs to be written in go. Pros:
Cons:
I think I'll set this as goal for version 2 of this plugin and maintain version 1 as Angular based plugin. |
I'm developing a backend plugin in Go and a panel plugin in React and typescript. The backend makes a mqtt client that you connect to a broker according to the configurations set, receives http internal requests from panel plugin and gives the response to them in order that panel plugin can show the response. At the moment I have developed a first version in which you can configure one or more mqtt clients (Grafana backend datasource) and one or more Grafana panel plugin that send requests to the mqtt client selected. In the panel plugin you can select the Mqtt operation (Connect/Disconnect/Subscribe/Unsubscribe/Publish) in order to show a different interface according to the operation selected. Have you already started to develop something like this? |
Hello @s-torneo, this is very interesting. I was thinking of doing the same in the mid-term future. |
HI @geeks-r-us and @bbinet, yes we can collaborate. I have finished to develop a first version, now it is available to this repository: https://github.com/s-torneo/mqtt-grafana-backend-panel-plugins. |
Due to Grafana deprecated Angular in favor of React
The Plugin should change the framework before more graphical extensions are done?
Personally I have never worked with react before so:
Let's check the effort it takes to move to react.
The text was updated successfully, but these errors were encountered: