Skip to content

Conversation

@sebhoss
Copy link

@sebhoss sebhoss commented Dec 9, 2025

This adds documentation on how to use JaaS as discussed in #2171.

@github-actions github-actions bot added the documentation Issues relating to documentation, missing, non-clear etc. label Dec 9, 2025
Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
@sebhoss
Copy link
Author

sebhoss commented Dec 10, 2025

Fixed missing newline at end of files

Copy link
Collaborator

@theSuess theSuess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I left some minor comments but overall this looks godd!


### Jsonnet

The Jsonnet dashboard type is deprecated. It uses the old and now unmaintained [grafonnet-lib](https://github.com/grafana/grafonnet-lib) library. Users who rely on Jsonnet based dashboards should switch to [JaaS](#jaas) instead which supports the new [grafonnet](https://github.com/grafana/grafonnet) library as well as any additional custom libraries you have created yourself. See the [discussion](https://github.com/grafana/grafana-operator/discussions/2171) for more details.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The Jsonnet dashboard type is deprecated. It uses the old and now unmaintained [grafonnet-lib](https://github.com/grafana/grafonnet-lib) library. Users who rely on Jsonnet based dashboards should switch to [JaaS](#jaas) instead which supports the new [grafonnet](https://github.com/grafana/grafonnet) library as well as any additional custom libraries you have created yourself. See the [discussion](https://github.com/grafana/grafana-operator/discussions/2171) for more details.
The Jsonnet dashboard type is targeted for deprecation. It uses the old and now unmaintained [grafonnet-lib](https://github.com/grafana/grafonnet-lib) library. Users who rely on Jsonnet based dashboards are encouraged to evaulaute the jsonnet expressions beforehand (using tooling like [tanka](https://tanka.dev) or [kubecfg](https://github.com/kubecfg/kubecfg)) or switch to [Jsonnet-as-a-Service](#jaas) instead which supports the new [grafonnet](https://github.com/grafana/grafonnet) library as well as any additional custom libraries you have created yourself. See the [discussion](https://github.com/grafana/grafana-operator/discussions/2171) for more details.

url: "http://jaas.jaas.svc.cluster.local:8080/jsonnet/your-dashboard"
```

[Example documentation](./jaas/readme).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Example documentation](./jaas/readme).
[Full example, including JaaS setup](./jaas/readme).


## Write your dashboards

The JaaS Helm chart includes [Grafonnet](https://github.com/grafana/grafonnet) and [other required libraries](https://github.com/metio/jsonnet-oci-images) as OCI volumes to write Grafana dashboards using Jsonnet. However, since Jsonnet is a superset of JSON, you can use JaaS to deliver your JSON based dashboards as well. This allows you to export an existing dashboard using the Grafana UI, package it as an OCI object, and expose it through JaaS.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The JaaS Helm chart includes [Grafonnet](https://github.com/grafana/grafonnet) and [other required libraries](https://github.com/metio/jsonnet-oci-images) as OCI volumes to write Grafana dashboards using Jsonnet. However, since Jsonnet is a superset of JSON, you can use JaaS to deliver your JSON based dashboards as well. This allows you to export an existing dashboard using the Grafana UI, package it as an OCI object, and expose it through JaaS.
The JaaS Helm chart includes [Grafonnet](https://github.com/grafana/grafonnet) and [other required libraries](https://github.com/metio/jsonnet-oci-images) as OCI volumes to write Grafana dashboards using Jsonnet.

Not sure if this is relevant


When using Jsonnet to define your dashboards, you will most likely want to use Grafonnet which is exposed like this in JaaS:

{{< readfile file="imports.jsonnet" code="true" lang="jsonnet" >}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this file is pretty short and not useful on its own, this should be an inline codeblock instead.


{{< readfile file="dashboard.yaml" code="true" lang="yaml" >}}

The name `your-dashboard` must match of the snippets you added to JaaS, or otherwise you will get a 404 response.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The name `your-dashboard` must match of the snippets you added to JaaS, or otherwise you will get a 404 response.
The name `your-dashboard` must match one of the snippets you added to JaaS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues relating to documentation, missing, non-clear etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants