OBSERVABILITY Signal 118
How to monitor HCP Terraform and Terraform Enterprise with Grafana Cloud
Illustration only Photo by Amsterdam City Archives on Unsplash
elseif has not written about this yet · Grafana describes it this way
When a Terraform run feels slow, most teams are flying blind. The run log in HCP Terraform tells you what happened, but not what took so long—and it certainly doesn't roll up across hundreds of runs so you can spot a trend.The good news: when you run your plans and apply on HCP Terraform or Terraform Enterprise self-hosted Terraform agents, each agent already emits OpenTelemetry data—distributed traces for every run phase and granular runtime metrics—and it writes structured logs to stdout. You just need something to collect it.This post shows how to monitor your HCP Terraform or Terraform Enterprise runs by pointing a self-hosted agent at Alloy and shipping traces, metrics, and logs into Grafana Cloud so you can be sure your deployment operates properly going forward.By the end you'll have this pipeline running locally:What you'll needNote: The steps outlined in this blog post can be applied to monitoring either HCP Terraform or Terraform Enterprise, but for the remainder of this post we will focus on HCP Terraform. Similar to Grafana Cloud, it offers a free tier, which means you can test the setup at no cost.You can run this entire walkthrough on your laptop with Docker. But befo
THE CLUSTER