-
Notifications
You must be signed in to change notification settings - Fork 30
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
Support for alerting? #112
Comments
I have some foundational work to support this created, but it is not caught up to the latest commits and needs a bit more work to fully support summary types. aa86f38 This is a foundational change and would need support for the project owners before making discussing any merging. |
@complacentsee do you have this in a fork? Can you grant me access to your fork? Thank you. |
Hi everyone, We would be very much interested into this plugin but we need the Alerting feature as well. Any chance this is already in your focus for the next releases @elwills ? If you need help we could participate. |
My POC branch still needs work to be release ready. The biggest outstanding concerns I can think of are the following. I'm sure there are more that I'm not thinking of as I haven't looked at the code in a week.
|
Hello @complacentsee, we are releasing version 4.0.0 by the end of this month or beginning of next month. For the next release (5.0.0) I would like to base it on your work. I will create a new branch once 4.0.0 is completed so we can continue from there. Thank you for your contribution. |
Is the annotation code base pretty stable for the next release? I forgot that it requires a significant rewrite to be moved to a backend. I can keep looking into that in the meantime. |
@complacentsee we are releasing v4.0.0 this month. Annotations is working properly for PI-AF event frames. |
Sorry for the delay. I had a couple of work projects keeping me too busy. I'm going to start taking a look at this and will let you know if I see any major obstacles. I think there is still going to be a challenge with Annotations since grafana default is the use standard time based data query for annotations instead of a custom query which means the new backend component may still require coordination depending how the queries are passed through. Is it okay if I target version grafana v10.0.0 as the minimum for this? |
Hello. Sure we can targe v10. |
Version 4.2.0 is in good shape to be used. |
Hello @complacentsee, were you able to work on this feature? |
I took some vacation this week and next week to make some measurable progress. |
I made some significant progress. The majority of the core functionality is is working. I'm working on validating all of the query options are working and have a few more to implement and validate. Current brach for this is here: |
Hello, thank you for the work.
I will take a look at it next week.
Em dom., 23 de jul. de 2023 às 20:00, Adam Traeger ***@***.***>
escreveu:
… I made some significant progress. The majority of the core functionality
is is working. I'm working on validating all of the query options are
working and have a few more to implement and validate. Current brach for
this is here:
https://github.com/complacentsee/osisoftpi-grafana/tree/backend
—
Reply to this email directly, view it on GitHub
<#112 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNGUQUNTHELTFT566MIDITXRWUI3ANCNFSM6AAAAAAVN7GAV4>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
@complacentsee , I'm very happy to see you are working on a backend implementation - thank you! I believe this is the way to go for the plugin. Am I correct in assuming this can also be used to support Public Dashboards? I agree with the previous statement that this is an important question to consider for the main devs/maintainers of this project. How can the switch to a backend implementation be done? Can both server and browser modes easily be supported? Do both modes need to be supported? |
This is still a work in development but is moving forward. Most of the work remaining is ensuring consistency with the all of the query options, and supporting summaries. Building it is pretty strait forward, the front end component list still build with yarn build (or whatever option was being used). The backend requires go and mage to be installed. To build the applications run "mage -v" and it will build all of the backend applications for the supported operating systems and architectures. Yes, public dashboard support and alerting both both have the same dependency on a backend component handling the query. Here is an example of a public dashboard. Alerting configuration is a bit spotty as there may be a bug on the query editor that it runs against. I haven't spent time debugging that issue. https://grafanaplugintesting.complacentsee.com/public-dashboards/c9b8930a6bf84d8aa3aff4b5a6a76b86 I did most of this work with the intention that the dashboard configurations would be compatible between the front end and the backend. The largest difference is that the existing frontend configuration caches the WebID of an element point and creation time, and mine queries and caches at runtime to allow for easier support of dashboard templates. To my knowledge a plugin cannot change between backend and frontend at runtime. |
Created the branch https://github.com/GridProtectionAlliance/osisoftpi-grafana/tree/backend |
@complacentsee have you changed the react part to use the new go plugin? |
No, that's a good catch, there are probably a few other methods that need to be cleaned up. I've just made a commit da311b5 which addresses that, and I'll look through the remaining front end code for additional cleanup later this week as I believe there is still more cleanup. Here is a quick explanation of the process now. The react component calls for asset/attribute/point/etc lookups still hit the datasource.restGet method, which is now adjusted to point to the endpoint of the datasource plugin. These requests hit backend's CallResource (pkg/plugin/datasource.go). I did add a filter to the CallResource requests to ensure that only a small subset of datasource applicable endpoints could be accessed which now works. |
Hello @complacentsee, have you used this https://github.com/grafana/grafana-plugin-examples/tree/main/examples/app-with-backend as the starting point of the backend plugin development? |
I did use their example as a starting point, but used the datasource-http-backend instead of the app-with-backend (https://github.com/grafana/grafana-plugin-examples/tree/main/examples/datasource-http-backend) |
@complacentsee are you still working on this? thank you. |
It should be functionally complete compared to the 4.2 release. I haven't been actively working on it since I wasn't sure if there was interest in moving forward with this. If there is interest and you want any changes please let me know and I can clean up the remaining tasks. In terms of finishing this up for a release there are a few todo items to clean up:
|
Initial support in #150 |
Any chance this plugin might be made to supporting alerting through grafana?
https://grafana.com/tutorials/build-a-data-source-backend-plugin/
The text was updated successfully, but these errors were encountered: