Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Dynamically creating New Relic dashboards with Terraform

Blog post from New Relic

Post Details
Company
Date Published
Author
James Buchanan, Principal Solutions Architect
Word Count
1,777
Language
English
Hacker News Points
-
Summary

Terraform is utilized to create dynamic New Relic dashboards by using JSON templates and NRQL queries, allowing for the automation of data generation and dashboard updates. The guide outlines the process of building a complex dashboard from simple input data, showcasing how to display various API metrics from services like Amazon Web Services, Google, Microsoft, and Facebook. By employing template expressions, users can generate dashboards efficiently without repetitive configuration, leveraging Terraform's ability to iterate over configuration objects to dynamically populate dashboard values. The tutorial emphasizes configuring inputs via Terraform files, using dynamic layout strategies to avoid repeated code, and employing string interpolation to customize NRQL queries and widget content dynamically. The blog further explains the creation of Terraform resources to render the dashboard and offers troubleshooting tips for any configuration errors encountered during the process.