Creating dashboards with Terraform and JSON templates
Blog post from New Relic
Terraform offers an observability-as-code tool that manages cloud and on-premises resources through configuration files using HCL but can be challenging to use with New Relic dashboards. To simplify this, JSON templates can be utilized, allowing for easier management without converting configurations to HCL syntax. Users can edit dashboards in the New Relic UI, export the configuration as JSON, and integrate it into their Terraform projects. This approach supports extended dashboard features like series coloring and y-axis scaling, enhancing customization capabilities. The blog explains how to implement this process, noting that Terraform provider version 3.4.0 or higher is required. Additionally, the series explores advanced dashboard creation methods, including dynamic generation using JSON with template variables and NRQL queries.