grafana / grafonnet

Jsonnet library for generating Grafana dashboards.
https://grafana.github.io/grafonnet/
Apache License 2.0
352 stars 19 forks source link

feat: add alerting #138

Closed Duologic closed 11 months ago

Duologic commented 12 months ago

Fixes #69

This PR provides an interface to create Alerting provisioning resources with Grafonnet. I personally don't know if we have a client that can actually do something with these JSON resources but at least we have one part of the puzzle this way.

The Grafonnet API is modelled after the Terraform provider resources. The contactPoint schema is under development so we can't offer that in Grafonnet properly yet.

The schema's for these resources come from the Grafana OpenAPI spec, this opens the door to add more resources that are described in this specification.

As always I tend to make this reviewable commit-by-commit. First commit is the actual code for the generator, the other two are generating the code and docs.

Duologic commented 11 months ago

wonder if it would be good to make the experimental state of the API more explicit in the type names or something --- or is the whole thing still considered to be subject to change?

The whole library is still marked as experimental, the note is just there to say 'we know this is incomplete'.

Duologic commented 11 months ago

rebased