From 3e039da3b6f70582a9685b30efba06a85d2c25a8 Mon Sep 17 00:00:00 2001 From: Rizal Widyarta Gowandy Date: Mon, 29 Mar 2021 14:49:48 +0700 Subject: [PATCH] Fix Error Pie Chart on Detail Page Missing the metric method filter. --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 20f6d25..0d224ed 100644 --- a/main.tf +++ b/main.tf @@ -600,7 +600,7 @@ resource "newrelic_one_dashboard" "main" { nrql_query { account_id = var.account_id - query = "SELECT count(*) FROM ${var.event_name} WHERE metric_status = 'error' FACET `code` LIMIT 10 EXTRAPOLATE" + query = "SELECT count(*) FROM ${var.event_name} WHERE method = '${widget_pie.value}' AND metric_status = 'error' FACET `code` LIMIT 10 EXTRAPOLATE" } } }