meln5674 / grafana-mongodb-community-plugin

Open Source Grafana Plugin for querying MongoDB
GNU Affero General Public License v3.0
137 stars 18 forks source link

Add alerting to this plugin #14

Open rajeshggwp opened 1 year ago

rajeshggwp commented 1 year ago

The plugin currently does not support alerting and hence creating this issue to enhance the plugin to support alerting. I found this grafana doc which explains how to add alerting to custom backend plugin - https://grafana.com/tutorials/build-a-data-source-backend-plugin/#enable-grafana-alerting

rajeshggwp commented 1 year ago

I tried building the plugin with the change mentioned in the above doc but I ran into issues while adding the alerting rule in grafana. @meln5674 I would like to contribute to this issue and let me know your thoughts on this issue

meln5674 commented 1 year ago

I've not actually used grafana alerting before, so if that's something you'd know more about, I'd be more than happy to accept a PR. If you do, please make sure to add something to the integration tests to exercise it.

rajeshggwp commented 1 year ago

got it! I'll give it a shot.

stefkauff commented 1 year ago

Hi, any update on this? Would definitely be a nice feature to have.

rajeshggwp commented 1 year ago

I got occupied with other work, I'll make the changes and test it. Based on Grafana's documentation, this change should be straight-forward. https://grafana.com/developers/plugin-tools/tutorials/build-a-data-source-backend-plugin#enable-grafana-alerting

alexandre-lelain commented 1 year ago

Hello,

Looking forward to seeing this feature enabled for the plugin !

Thank you :)