New Features
New Features
November 23, 2022

Monitor Terraform Runs in Datadog

Ryan Fee

Use Terraform, Scalr, and Datadog to reduce incidents, and when they happen, catch them quicker and restore service faster.

Incidents happen. Terraform is commonly used to fix infrastructure incidents, but what happens when the Terraform code or pipeline breaks? Observability and monitoring become more and more important as Terraform usage scales, which is why Scalr has partnered with Datadog to build a first class integration to monitor Terraform runs.

Build Dashbaord for Run Analysis

The integration streams the Terraform run execution event to Datadog for analysis. Use tags associated with Scalr objects, like workspaces and environments, to build dashboards or alerting with information such as:

  • Number of plans vs applies vs errored runs
  • The most active environments and/or workspaces
  • Thet most active users
  • The source of the run: CLI vs VCS vs API

Want to be alerted of errors in critical workspace? Build monitors to track events in those workspaces:

Create monitors for critical environments and workspaces

Using Terraform, Scalr, and Datadog together allows DevOps teams to operate at an extremely efficient scale by giving the end to end picture of their infrastructure provisioning and operations.

Get started now by connecting Scalr to Datadog here

Note: While this blog references Terraform, everything mentioned in here also applies to OpenTofu. New to OpenTofu? It is a fork of Terraform 1.5.7 as a result of the license change from MPL to BUSL by HashiCorp. OpenTofu is an open-source alternative to Terraform that is governed by the Linux Foundation. All features available in Terraform 1.5.7 or earlier are also available in OpenTofu. Find out the history of OpenTofu here.

Start using the Terraform platform of the future.

A screenshot of the modules page in the Scalr Platform