What you’ll learn

If you’ve ever had an alert rule silently changed in production, or spent time recreating notification policies someone deleted by accident, this journey is for you. It’s built around two main sections that teach you to manage Grafana resources as code:

SectionSkills
Grafana resources as codeUnderstand the Grafana Terraform provider, define alert resources in HCL, and deploy them with Terraform
CI/CD automationAutomate deployment with GitHub Actions

What you’ll build

During this journey you’ll build a complete resources-as-code workflow:

  1. Alert rules, contact points, and notification policies defined in HCL
  2. Deployed to Grafana via Terraform
  3. Automated through a GitHub Actions pipeline

By the end, every resource change goes through version control, code review, and automated deployment, just like your infrastructure.

Script

Welcome to Deploy Grafana Resources as Code with Terraform. If you’ve ever had an alert rule silently changed in production, or spent time recreating notification policies after someone deleted them, this journey is for you.

You’ll learn how to define Grafana resources like alert rules, contact points, and notification policies using Terraform’s HCL configuration language, deploy them with the Grafana Terraform provider, and automate the whole lifecycle with GitHub Actions. By the end, every resource change will go through version control, code review, and automated deployment, just like your infrastructure.

The journey has two main sections. First, you’ll learn about the Grafana Terraform provider, define alert resources in HCL, and deploy them with Terraform’s plan-and-apply workflow. Then you’ll wire it all into a CI/CD pipeline so resources deploy automatically on every merge.