-
Notifications
You must be signed in to change notification settings - Fork 57
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
Grafana Alerts Sync (ngalert) #203
Comments
I am also interested in this feature, and could have a go at submitting a PR if this would be welcome? I've started putting something together here https://github.com/JustinPealing/grizzly/tree/GrafanaRule Looking at the API the
|
What would it take to get something merged here? Would love to see this and would be happy to assist if needed. |
Is there any progress on this topic? I would love to see it merged. |
After doing some more testing of my fork I discovered that it does not handle updates correctly, unfortunately team priorities have shifted and I haven't had a chance to return to this. I can't remember the exact details but I think it was that the endpoint expects each rule to have the ID of the corresponding rule that is being updated. Probably it can make a call to get the existing rules and lookup the ID by matching on the name. |
@JustinPealing for what it's worth, I forked your fork and have something that works on updates. I don't expect it to be extremely robust, but it's working for me for now. https://github.com/chrismgrayftsinc/grizzly/tree/GrafanaRule |
v0.3.0 introduced support for ngalert resources |
Hi grr team
I'm investigating the approach to automate alerts sync in similar approach to dashboards (via jsonnet and https://editor.swagger.io/?url=https://raw.githubusercontent.com/grafana/grafana/main/pkg/services/ngalert/api/tooling/post.json)
Atm looks like grizzly supports only Cortex API for alerts, or did i miss anything?
Is there any plan/vision how managing alerts as a code falls into grizzly/grafana future? Can you help/advise on this what can be a potential here?
Thank you in advance
The text was updated successfully, but these errors were encountered: