Slide 1 of 6

Grafana resources and Terraform

Grafana resources and Terraform

What you’ll do in this module:

  • Resources as code in Grafana. What it means to define Grafana resources in configuration files instead of the UI.
  • Grafana resources in Terraform. The Grafana Terraform provider and the resources it supports.
  • Anatomy of an alert rule. How a Grafana alert rule maps to a Terraform resource block.
  • The alerting pipeline. How alert rules, contact points, and notification policies work together.
  • Deploy an alert rule learning path. Hands-on deployment of a complete alerting pipeline.

Estimated time: 15 minutes

Script

You’re moving from intro concepts into module two, Grafana resources and Terraform. You already know why managing resources as code matters and where Terraform fits in the tools landscape. Now you connect that understanding to practice.

In this module you’ll learn what it means to manage Grafana resources as code, explore the resources the Grafana Terraform provider supports, break down the anatomy of an alert rule in HCL, see how alert rules, contact points, and notification policies form a complete alerting pipeline, and then jump into a hands-on learning path where you deploy your own alert rule with Terraform. Budget about fifteen minutes for this module.