-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add Alert support #34
Comments
I suppose it can be implemented after this is done grafana/grafana#16026 and also mabye this grafana/grafana#6841 PR is welcome! |
Seems to be some movement in grafana/grafana#16631:
I'm assuming that this plugin will need to migrate to a backend plugin, or at least partly? |
Yes- we would need to execute at least the query part through the backend. The main point initially would be to check
Would be happy to accept a PR. I can probably help some with go part if needed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've tried to reach the guy from https://github.com/grafana/simple-json-backend-datasource/, but with no success. Then I've found this community post which says that simple json data source already supports that, though not officially: https://community.grafana.com/t/when-the-alert-can-support-simple-json-datasource/11046/6 And it is available at https://github.com/grafana/simple-json-datasource/tree/backend-updated So it seems to be a matter of porting it into simpod's implementation. |
PRs are welcome! I don't fancy golang development, so probably won't give it a shot personally. |
...which is a shame as go is really an amazing language. I've come to really like it during the last 2 years. |
I hate the ecosystem around it, building a dep management, don't have nerves for it :D any other language is fine with me ;) |
True- |
Now that the new Grafana version (v7.0) is out, is there a chance that this feature can be added? Would be highly appreciated! :) |
Correcting myself after reading #34 (comment) @natenho would you feel like providing a diff of the backend tree highlighting the needed changes? |
I don't know if that helps, my question was based on this:
Reference: https://grafana.com/docs/grafana/latest/developers/plugins/backend/ |
Is there a way to let Grafana populate the alert Tab? |
A workaround is to add a dummy "alert" to the JSON model of the panel, then save and edit. |
Found it: |
Alert panel can be populated by setting the Alert setting component in https://github.com/simPod/grafana-json-datasource/blob/master/src/module.ts |
been trying to find the exact setting, is it "setAlert(xxxx)" ? |
Ah, my bad. I mistaken it for annotations. I don't know anything about alerts for now. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@simPod our dev team is considering to assist you with adding Alerting Support. What would you actually require? Did you do some requirement analysis, what is missing to support this feature, you could share with us? |
Hello @KrisztianKaszas. That would be great. I have not done any analysis. If I were to implement it, I'd look into other datasources for examples, e.g., https://github.com/grafana/clickhouse-datasource/blob/main/src/plugin.json |
This issue has been automatically marked as stale because it has not |
This issue has not seen any activity since it was marked stale. |
The only way to know this is to try and be disappointed.
Thanks
The text was updated successfully, but these errors were encountered: