Skip to content
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

feat: add grafana v10 AlertRule support #645

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

desmaraisp
Copy link

@desmaraisp desmaraisp commented Jan 25, 2024

What does this do?

Grafana v10 has a slightly different format for alert rules, so the v9 version of the class cannot be used without overriding the to_json_data method. The PR implements the modified rendering that should work for grafana v10 alerts

Why is it a good idea?

Supporting v10 will help keeping the library relevant in the short term while cog matures. Once cog become mature enough, it might be an interesting option, but for now manual code changes are still the best way to go forward

Context

See #627

Questions

@lexi-k
Copy link

lexi-k commented Feb 22, 2024

Hi, would it be possible to merge this please? We would also appreciate this change, although it hard to make the change ourselves, having it right in the "main" library would not trigger our "OCDs" as much ;-)

@pawel-biegun-sq3
Copy link

Hi @amotl, would it be possible to merge this? It looks like an essential improvement to support V10 dashboards.

@amotl
Copy link
Contributor

amotl commented Apr 23, 2024

Hi Pawel. I am not a member of the grafanalib project, so I can't help you here. Apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants