terraform-provider-newrelic
terraform-provider-newrelic copied to clipboard
Allow filterCurrentDashboard in one_dashboard_json
Feature Description
Currently, there doesn't seem to be a documented way to allow "filter_current_dashboard" on tables. This is a requirement for some dashboards to be effective, and it's not reasonable to have to change them all manually after every TF update.
- As a further note - this field is not exported from the dashboard when you click "Copy JSON"
Describe Alternatives
I've considered using one_dashboard, but that doesn't support all of the latest features as the json one, so I feel stuck.
Thanks for feedback @tcgbrett
The filter_current_dashboard
was a hack
that the Terraform team put in place because we need the GUID to set the filter, but the GUID is only available after create, so we do some magic to make it work. This is also why you can't find it in the dashboard json.
After discussing this internally I don't think we'll have a solution for this on the API side. I am exploring adding variables to the one_dashboard_json
resource, which would mean we could add selfGUID
or something similar to allow the filtering. Would this work for you?
@kidk It should be ok for me. Did you have some time to work on this feature ?
I have similar issue but basically what you've described here seems to be a bug in newrelic api that import of json isn't allowing to setup correct guid for "linkedEntityGuids" ?
cc: @sanderblue