Slide 3 of 3

Build a dashboard learning path

Learning path: build a dashboard with the Foundation SDK

Put the builder pattern into practice. Work through each milestone in order. When you finish, you should have dashboard JSON ready to commit for Git Sync.

StepWhat you’ll doOutcome
1. Set up your projectInstall the Foundation SDK and create a projectA working SDK project in Go or TypeScript
2. Create a dashboardUse DashboardBuilder to define a dashboard with UID, tags, and time rangeA complete dashboard definition
3. Add panels and queriesAttach panels with data queriesA dashboard with visualizations
4. Export JSONCall build() and write the output to a fileDashboard JSON on disk
5. Verify the outputInspect the JSON (optional: import into Grafana manually)Confirmed valid dashboard JSON

Before you start

  • Go or Node.js installed for your chosen language
  • A terminal and code editor
Learning path

Build a dashboard with the Foundation SDK

Welcome to the learning path that shows you how to define a Grafana dashboard as strongly typed code and export it as deployment-ready JSON.

11 min
Intermediate
Docs & blog posts

Open in Grafana Cloud

Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.