Dashboards as code
With this workflow, you can define and manage dashboards as code, saving them to a version control system like Git. This is useful for teams that want to maintain a history of changes, collaborate on dashboard design, and ensure consistency across environments.
- Use a dashboard generation script (for example, with the Foundation SDK). You can find an example implementation in the Grafana as code hands-on lab repository.
- Serve and preview the output of the dashboard generator locally:
- When the output looks correct, generate dashboard manifest files:
- Push the generated resources to your Grafana instance: