grafana / grafonnet-lib

Jsonnet library for generating Grafana dashboard files.
https://grafana.github.io/grafonnet-lib/
Apache License 2.0
1.08k stars 217 forks source link

Compatibility with Grafana 9.X.X #360

Closed moyamos closed 2 years ago

moyamos commented 2 years ago

Hi All,

Is it compatible with Grfana 9.X.X for alert generating in "unified alerting"?

I was using it for generating dashboards and it was working fine with Grafana 8.4.1in the legacy alerting engine. Now, generated JSON does not create an alert!

moyamos commented 2 years ago

In Grafana 9.X and "unified alerting" alerts are decoupled from dashboards/panels in a JSON file. So, it cannot be used for setting up the alerts.

From my experience, the lib is still working fine for templating dashboards/panels.

Allen-yan commented 1 year ago

Hi @moyamos , Is there any update about this issue?

moyamos commented 1 year ago

Hi @Allen-yan, I am still using grafonnet-lib to generate my dashboards. But for the alert, I am using alerting provisioning API (https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/).

They are working for me with grafana:9.0.5.

Allen-yan commented 1 year ago

@moyamos Thanks