Integration
up0 + Terraform
Manage up0 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
up0 is in early access. Here's exactly what setup looks like once your team is onboarded.
- 1Add the up0 provider to your Terraform configuration2 min
- 2In up0: Settings → API Keys, create a Terraform API key with write access1 min
- 3Set the API key in your environment: export UP0_API_KEY=your_key30 sec
- 4Run terraform init to download the up0 provider plugin1 min
- 5Define up0_monitor resources in your .tf files and run terraform apply3 min
Example Terraform resource (illustrative)
# Illustrative: provider not yet published to the Terraform registry
terraform {
required_providers {
up0 = {
source = "up0io/up0"
version = "~> 1.0"
}
}
}
provider "up0" {
api_key = var.up0_api_key
}
resource "up0_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 = [
up0_notification_channel.slack_oncall.id
]
}Set up Terraform alerts in 5 minutes
up0 is in early access, join the waitlist to get started