-
Notifications
You must be signed in to change notification settings - Fork 299
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
AlertList compatibility with grafana 9.x #585
Comments
It is quite easy to reproduce using grafana docker image + those two json files provided above in the description: docker run --rm -p 3000:3000 --name grafana grafana/grafana-oss:<version>
|
tporeba
changed the title
AlertList compatibility with grafana 9.4
AlertList compatibility with grafana 9.x
May 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to use grafanalib with grafana 9.4 and I noticed that
grafanalib.core.AlertList
component produces definition of alertlist panel in old json format. The panel gets created, but some properties end up with wrong values and are ignored, for example :stateFilter
oronlyAlertsOnDashboard
.If I understand this note correctly, grafanalib assumes that grafana will migrate from those old json formats to newest formats when dashboard is being imported, but this does not happen for me. I'm not sure if this is some configuration issue or if the new grafana no longer does the migration.
What you expected to happen?
grafanalib.core.AlertList.to_json_data
should produce a json compatible with recent grafana versions.What happened?
For
Grafanalib generates following AlertList a json with AlertList panel, it generates a json like this one:
but after importing this in grafana, panel has default settings in 'Alerts from this dashboard' and 'Alert state filter'.
If following json was generated, the import would work ok:
How to reproduce it?
Generate a dashboard with AlertList panel from grafanalib and install it in grafana
or use one of the following example dashboard jsons for manual test:
steps:
False
, but should beTrue
The text was updated successfully, but these errors were encountered: