Dynatrace Configuration as Code via Terraform

  • Latest Dynatrace
  • Concept
  • 2-min read

Dynatrace offers a dedicated Terraform provider to manage your monitoring environment.

Terraform overview

Terraform, create by HashiCorp, is a widely adopted Infrastructure-as-Code (IaC) tool.

The Dynatrace Terraform provider is a library that allows you to use the Terraform syntax and functionalities to create a custom configuration (resource), such as a Dynatrace dashboard, workflow, or anomaly detector.

Additionally, it provides data sources such as the entity ID of a service detected by Dynatrace. The Dynatrace Terraform provider allows you to pull information from these data sources into Dynatrace.

Advantages of using the Dynatrace Terraform Provider

  • No manual edits in production.
  • Scale configs via teams and stages.
  • Keep configs or environments in sync.
  • Recreate configs (e.g., for purposes of disaster recovery).
  • Elevate Terraform features such as loops.
  • Group components in modules for reusability.
  • Team onboarding for building new apps and templating.

Steps

  • optional Migrate configurations between environments and export existing configurations from your environment. For more information, see Guides.

Learn more

Official Terraform documentation:

Further Dynatrace documentation and material:

Getting Started with Dynatrace Terraform