-
Notifications
You must be signed in to change notification settings - Fork 18
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 alerting to the plugin #23
base: master
Are you sure you want to change the base?
Conversation
I've not actually used the alerting feature before, would you mind adding something to the end-to-end tests based on your local testing? |
For the integration test, I think I can create an alert rule - https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#route-post-alert-rule Also, CI / ci (pull_request) had failed. Can you help me out with this? |
Yes, I was looking at that this morning. I believe the cause is due to some flaky-ness regarding the different layouts the grafana UI will use depending on the screen size. I've pushed a commit that pins a fixed window size and the job passed, so I would recommend merging master and seeing if the failure happens again. |
Hey @meln5674, I tried creating integration tests for creating alerts using grafana APIs(https://grafana.com/docs/grafana/latest/developers/http_api/). I tried both Alerting API (unstable) and |
sample curl this request works with existing code as well |
Looks reasonable. Would it be possible to add a request as well that would demonstrate getting that alert's status (firing/not firing)? If you can add those two requests to the e2e test function I linked, I'll go ahead and merge. |
Hey @meln5674, I have added the tests,
|
Sorry for the delay. I like the approach, but I have a few comments/recommendations:
|
@rajeshggwp any updates to this PR? we would love to use alerting with this plugin@ |
I haven't heard from the author in quite a while, and I unfortunately have not had time to work on this since. |
Hi @meln5674, I added this configuration and I was able to locally test the alert configuration. Let me know your thoughts!
Fixes: #14