Read script
Script
Grafana offers several tools for managing resources as code. Each solves a different part of the problem, and they can work together.
The Grafana Terraform provider lets you manage dashboards, folders, data sources, alert rules, contact points, notification policies, and more. If you already use Terraform for infrastructure, this keeps your Grafana resources in the same workflow.
Git Sync connects a GitHub repository directly to your Grafana instance. You store resource files in a repo, and Git Sync keeps them synchronized with Grafana. Great for teams that want a Git-native workflow without writing pipeline code.
gcx is Grafana’s command-line tool. It authenticates to your Grafana instance and pushes or pulls resources. Think of it as the bridge between your local machine and Grafana’s API.
The Foundation SDK is a set of code libraries for defining dashboards programmatically using Go, TypeScript, Python, Java, or PHP. It’s specific to dashboards, so it’s outside the scope of this journey.
This journey focuses on the Terraform provider for defining and deploying Grafana resources.