Section 3 · Deploying dashboards

Choosing the right deployment method for your workflow

Estimated time: 1 min

Deploy your dashboards

Now it’s time to connect your code-generated dashboards to a running Grafana instance.

Deployment methods available in Grafana

Grafana supports several ways to deploy dashboards from code. The right choice depends on the workflow your team already uses. Each has different trade-offs.

MethodHow it worksBest forTrade-off
TerraformDefine dashboards in HCL files and deploy them with the same plan-and-apply workflow as your other infrastructureTeams with existing Terraform workflowsAnother tool to learn if you don’t already use it
Git SyncStore dashboard JSON in a GitHub repository; Grafana automatically synchronizes itGit-native teams, no custom pipelinesLess control over the deployment process
Grafana APISend HTTP requests to Grafana directly; the other two methods are built on top of itFull custom controlMore code to write and maintain

This journey covers Terraform deployments. You’ll produce as-code workflows that integrate with your existing infrastructure code.