Integration

upzero + Terraform

Manage upzero monitors as code with the official Terraform provider. Version-control your monitoring configuration alongside the infrastructure it watches.

What you get

  • Monitor configuration lives in version control: every change is reviewed, audited, and reversible.
  • Spin up monitors alongside new services in the same Terraform plan, so nothing ships unmonitored.
  • Destroy monitors automatically when you tear down infrastructure, no orphaned checks billing you.

Setup

upzero is in early access. Here's exactly what setup looks like once your team is onboarded.

  1. 1
    Add the upzero provider to your Terraform configuration
    2 min
  2. 2
    In upzero: Settings → API Keys, create a Terraform API key with write access
    1 min
  3. 3
    Set the API key in your environment: export UP0_API_KEY=your_key
    30 sec
  4. 4
    Run terraform init to download the upzero provider plugin
    1 min
  5. 5
    Define upzero_monitor resources in your .tf files and run terraform apply
    3 min

Example Terraform resource (illustrative)

# Illustrative: provider not yet published to the Terraform registry
terraform {
  required_providers {
    upzero = {
      source  = "upzeroio/upzero"
      version = "~> 1.0"
    }
  }
}

provider "upzero" {
  api_key = var.upzero_api_key
}

resource "upzero_monitor" "production_api" {
  name             = "Production API"
  url              = "https://api.example.com/health"
  check_interval   = 30
  regions          = ["us-east-1", "eu-west-1", "ap-southeast-1"]
  alert_threshold  = 2

  notification_channels = [
    upzero_notification_channel.slack_oncall.id
  ]
}

Set up Terraform alerts in 5 minutes

upzero is in early access, join the waitlist to get started

Join the waitlistSee all featuresView pricing