Grafonnet-lib compatibility with Grafana 9.x and unified alerting

Meanwhile, I have adapted my dozen dashboards via “grafonnet-lib”, decoupling alerts. From my experience, the dashboards are generated and imported correctly.

The alerts are set up via scripts with Alert Provisioning: the newest stable API (Alert Provisioning: the newest stable API).

A couple of issues that I have been encountering are as follows:

  • onlyAlertsOnDashboard=true from grafonnet-lib/grafonnet/alertlist.libsonnet does not affect and I have manually trigged it from the “Panel options”.
  • Alerts created with the alert provisioning, mentioned above, do not show up with api/alerts to get the list of all alerts.

Maybe solutions already existed, but I did not yet manage to investigate them.