Home / Companies / Grafana Labs / Blog / Post Details
Content Deep Dive

Grafana OnCall and Terraform: How to get started

Blog post from Grafana Labs

Post Details
Company
Date Published
Author
Innokentil Konstantinov
Word Count
1,737
Language
English
Hacker News Points
-
Summary

Grafana OnCall, a tool for managing on-call schedules and escalation chains, aims to simplify and reduce errors in these processes, particularly when used with as-code workflows. The introduction of a Terraform provider for Grafana OnCall, available for both Grafana OnCall OSS and Grafana Cloud, facilitates this by allowing users to manage integrations, schedules, and escalations programmatically. The setup process for Grafana OnCall via Terraform involves creating API tokens, configuring the provider, and establishing integrations and escalation chains. The guide explains how to create on-call schedules using Terraform, including setting up on-call rotations and escalation chains, and routing alerts based on severity. The difference in handling default and critical alerts is highlighted, with critical alerts receiving immediate attention and default alerts having a delay to limit distractions. Future plans include a Terraform exporter to assist teams in migrating to Infrastructure as Code, and users are encouraged to explore Grafana OnCall's documentation and community resources for further support.