Last updated: June 9, 2026
About Managing as Code
Dashboards and views can be managed as infrastructure as code, allowing you to version control, automate deployment, and maintain consistency across environments. This approach enables code review for visualization changes, and collaborative dashboard development.
Agent0 can generate infrastructure-as-code configurations for dashboards and check rules. After creating assets with Agent0, request the corresponding Terraform or Kubernetes configuration to manage your observability as code. See Asset Creation for details.
Available Tools
Dash0 provides three infrastructure as code tools for managing check rules:
- Dash0 Operator for Kubernetes - Define check rules as PrometheusRule custom resources.
- Dash0 Terraform Provider (on the Terraform and OpenTofu registries) - Manage check rules in Terraform configurations alongside other infrastructure.
- Dash0 CLI - Script check rule operations for batch deployments and automation.
All tools support creating, updating, and deleting check rules. The same approach applies to dashboards, views, and synthetic checks.
Further Reading
- Import Dashboards — Import Perses-based dashboards, such as Grafana dashboards.
- Export Dashboards — Export dashboards from Dash0 to YAML in Perses format.
- Export Views — Export views from Dash0 to YAML.
- Manage Dashboards as Code — Use the Dash0 Operator for Kubernetes, the Dash0 Terraform Provider, or the Dash0 CLI.
- Manage Views as Code — Manage saved queries as infrastructure as code.