Company
Date Published
Author
James Buchanan, Senior Solutions Architect
Word count
1088
Language
English
Hacker News points
None

Summary

Terraform is used to define and manage cloud and on-prem resources, but creating dynamic dashboards can be challenging. To overcome this, Terraform can be combined with the NRQL (New Relic Query Language) to dynamically create a dashboard based on live data. This approach allows for real-time data-driven dashboards without requiring changes to the Terraform configuration. The process involves defining a GraphQL query using NRQL, specifying an API key and account ID, and passing the query result into a template file to generate the dashboard. The resulting dashboard displays the top five public APIs by total calls and updates dynamically with new data. This approach can be used to create dynamic dashboards for various use cases, such as tracking popular products or poorly performing servers.