Datadog is an analytics tool that can be used for event monitoring, log collection, and much more. As you scale your Terraform usage, the ability to analyze the run results, run execution time, and any other aspect of Terraform runs becomes extremely important to optimize your overall Terraform workflow.
The Datadog integration can currently stream event details for Terraform runs executed in Scalr. To integrate with Datadog, simply go to the integrations page at the account scope, select Datadog, and add the necessary information:
At this point, just select the necessary connections and the integration is complete. You will now see Terraform run events in Datadog!
You can now build reports and dashboards in Datadog to analyze your Terraform events. For example, break down run results per environment:
Send metrics to Datadog for in-depth analysis and reporting such as queue runs, queue state, the number of environments, and workspace count. These metrics are visualized in their out-of-the-box dashboard to help correlate deployments with other infrastructure changes and to track trends within your Terraform pipeline.
See how to install the Datadog agent and enable the Scalr integration here.
|scalr.environments.count||Total number of environments|
|scalr.workspaces.count||Total number of workspaces|
|scalr.runs.count||Total number of runs|
|scalr.runs.successful||Number of runs in applied or planned_and_finished status|
|scalr.runs.failed||Number of runs in an errored status|
|scalr.runs.awaiting_confirmation||Number of runs in planned, policy_checked, policy_override, cost_estimated status|
|scalr.runs.concurrency||Number of runs in planning, policy_checking, cost_estimating, applying status|
|scalr.runs.queue_size||Number of runs in plan_queued or apply_queued status|
|scalr.quota.max_concurrency||The quota.max_concurrent_runs value (account quota)|
|scalr.billing.runs.count||The number of runs in the current billing period|
|scalr.billing.run_minutes.count||The number of run minutes used in the current billing period|
|scalr.billing.flex_runs.count||The number of flex runs used in the current billing period|
|scalr.billing.flex_run_minutes.count||The number of run minutes used in current billing period|
You can also utilize the Scalr integrations dashboard by default by going to Dashboards->Integrations in Datadog:
Updated about 2 months ago