Dash0's Terraform provider allows management of your dashboards as code, enabling version control and automation of your observability resources.
Terraform is an open-source infrastructure as code (IaC) software tool created by HashiCorp. It allows users to define and provision data center infrastructure using a declarative configuration language known as HashiCorp Configuration Language (HCL), or optionally JSON.
Dash0 offers a Terraform provider that enables you to manage your dashboards, synthetic checks, check rules, and custom views as code, bringing the same benefits of version control, collaboration, and automation to your observability resources that you already enjoy with your infrastructure.
For more information, visit the Terraform Project Page.
The Dash0 Terraform Provider allows you to:
The Dash0 Terraform Provider allows you to manage your dashboards, check rules, and custom views as code, bringing infrastructure-as-code practices to your observability resources.
Add the Dash0 provider to your Terraform configuration:
The provider interacts with Dash0 through the public API. You need to specify which API endpoint to use and the auth token to use. Right now, this is done via environment variables:
You can download a dashboard's source YAML directly from the Dash0 UI by navigating to Dashboards in the main menu, selecting the desired dashboard, opening Settings > Source, and clicking Download YAML.
Synthetic checks enable you to monitor your services proactively by running automated tests against your endpoints:
You can download a synthetic check's source YAML from the Dash0 UI by going to Synthetics in the main menu, selecting the check, and clicking Download YAML. This allows you to version control your synthetic monitoring configurations and deploy them consistently across environments.
Check rules enable you to define alerting rules in Prometheus Rule format for monitoring your services:
Views allow you to create custom data visualizations and organize your observability data:
For detailed documentation on available resources, configuration options, and usage examples, visit the Dash0 Terraform Provider in the Terraform Registry.