Replies: 3 comments 3 replies
-
That's a neat approach and it totally works around any differences between the latest dashboard features and Terraform's implementation of it. Documentation-wise, it might be worth including some examples of templating so it's easier for users to onboard and starting (re-)using |
Beta Was this translation helpful? Give feedback.
-
I do have a concern with removing
If you remove |
Beta Was this translation helpful? Give feedback.
-
To give an update here: We are going to continue our support for |
Beta Was this translation helpful? Give feedback.
-
Hi everyone 👋
If you haven't seen it already we recently added support for dashboard json: https://registry.terraform.io/providers/newrelic/newrelic/latest/docs/resources/one_dashboard_json
It allows you to provide a json file or template to manage a dashboard in New Relic.
Because we are sending the raw JSON back to the API it allows you to use the latest dashboard features like y-axis configuration, variables (soon), color selection (soon), and others.
This brings us to an important question: What do we do with newrelic_one_dashboard and newrelic_one_dashboard_raw? Long term these resources are always going to be behind on features compared to the
newrelic_one_dashboard_json
because each new feature for newrelic_one_dashboard and newrelic_one_dashboard_raw requires custom implementation on the Terraform side, wherenewrelic_one_dashboard_json
will usually just work, or in worst case needs an automated code generation run.That's why I'm thinking to add a deprecation warning to newrelic_one_dashboard and newrelic_one_dashboard_raw and point everyone towards newrelic_one_dashboard_json. Long term (1/2 years) we would remove the newrelic_one_dashboard and newrelic_one_dashboard_raw resources.
What do you all think? Does this make sense to you, or are am I forgetting certain use-cases?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions