You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 or onlyAlertsOnDashboard.
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.
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: