You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I’m seeing constant drift in Terraform plans for New Relic dashboards, specifically for widget row and column attributes. I use the newrelic_one_dashboard resource to manage my dashboards and want to keep custom positions for my widgets, but every terraform plan shows changes—even if I swap two widgets’ rows and columns, the drift persists.
`
area_widgets = {
totalinvocations_count = {
title = "Widget A"
nrql_query = {
query = <<-NRQL
SELECT
filter(count(), WHERE some_field = true) AS 'Masked1',
filter(count(), WHERE some_field = false) AS 'Masked2',
count(*) AS 'Masked3'
FROM SomeTable
WHERE entity.name = 'masked-entity'
SINCE 1 day ago
TIMESERIES AUTO
NRQL
}
row = 4
column = 1
width = 4
height = 3
}
mock_avg_transaction_time = {
title = "Widget B"
nrql_query = {
query = <<-NRQL
SELECT average(masked_field)
FROM AnotherTable
WHERE appName = 'masked-app'
FACET name TIMESERIES AUTO
SINCE 1 day ago
NRQL
}
row = 9
column = 7
width = 6
height = 3
}
}
`
If I swap their positions in code, Terraform still shows a plan to swap them back, and this repeats on every plan/apply cycle. And imagine i have dashboard with 8 pages and all of them drift, no drift only in those where is a single widget of that type.
I noticed there haven’t been any new issues or updates on this since 2022. Is there any workaround or update on how to mitigate this drift, while still allowing custom widget placement?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m seeing constant drift in Terraform plans for New Relic dashboards, specifically for widget row and column attributes. I use the newrelic_one_dashboard resource to manage my dashboards and want to keep custom positions for my widgets, but every terraform plan shows changes—even if I swap two widgets’ rows and columns, the drift persists.
`
area_widgets = {
totalinvocations_count = {
title = "Widget A"
nrql_query = {
query = <<-NRQL
SELECT
filter(count(), WHERE some_field = true) AS 'Masked1',
filter(count(), WHERE some_field = false) AS 'Masked2',
count(*) AS 'Masked3'
FROM SomeTable
WHERE entity.name = 'masked-entity'
SINCE 1 day ago
TIMESERIES AUTO
NRQL
}
row = 4
column = 1
width = 4
height = 3
}
mock_avg_transaction_time = {
title = "Widget B"
nrql_query = {
query = <<-NRQL
SELECT average(masked_field)
FROM AnotherTable
WHERE appName = 'masked-app'
FACET name TIMESERIES AUTO
SINCE 1 day ago
NRQL
}
row = 9
column = 7
width = 6
height = 3
}
}
`
If I swap their positions in code, Terraform still shows a plan to swap them back, and this repeats on every plan/apply cycle. And imagine i have dashboard with 8 pages and all of them drift, no drift only in those where is a single widget of that type.
I noticed there haven’t been any new issues or updates on this since 2022. Is there any workaround or update on how to mitigate this drift, while still allowing custom widget placement?
Beta Was this translation helpful? Give feedback.
All reactions