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

Generate Grafonnet from Grafana schema #380

Closed malcolmholmes closed 1 year ago

malcolmholmes commented 1 year ago

In #376, @duologic put together a POC showing how we could build Grafonnet from Grafana's schema. This required (by necessity) Golang code which is really not Grafonnet's concern.

This PR uses just Jsonnet to render Grafonnet. It builds upon pre-rendered JsonSchema files, plus a "registry" that maps Grafana versions to schema versions. The code to render these raw files will follow soon.

Duologic commented 1 year ago

My comment relates to my suggestion made here: https://github.com/grafana/thema/pull/99#issuecomment-1384527553

Duologic commented 1 year ago

We're moving this to a new repository, cool stuff coming soon. Closing this PR to reduce confusion.