Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ec29224

Browse files
committedAug 15, 2024··
Add check tables to dashboard
1 parent da03cd8 commit ec29224

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
 

‎terraform/shared/modules/newrelic/logreview.tf

+60
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,65 @@ resource "newrelic_one_dashboard" "log_review_dashboard" {
222222

223223
legend_enabled = true
224224
}
225+
226+
widget_log_table {
227+
title = "${var.cf_space_name} Check Tables Logs"
228+
229+
row = 8
230+
column = 1
231+
width = 8
232+
height = 3
233+
234+
nrql_query {
235+
query = "SELECT `message`,`newrelic.source`,`tags.app_name`,`tags.space_name` FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('CHECKTABLESPASS', insensitive: true) SINCE 7 days ago"
236+
}
237+
238+
legend_enabled = true
239+
}
240+
241+
widget_billboard {
242+
title = "${var.cf_space_name} Table Check Count - Pass"
243+
244+
row = 8
245+
column = 9
246+
width = 3
247+
height = 3
248+
249+
nrql_query {
250+
query = "SELECT count(*) FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('CHECKTABLESPASS', insensitive: true) SINCE 7 days ago"
251+
}
252+
253+
legend_enabled = true
254+
}
255+
256+
widget_log_table {
257+
title = "${var.cf_space_name} Missing Tables Logs"
258+
259+
row = 9
260+
column = 1
261+
width = 8
262+
height = 3
263+
264+
nrql_query {
265+
query = "SELECT `message`,`newrelic.source`,`tags.app_name`,`tags.space_name` FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('DBMISSINGTABLES', insensitive: true) SINCE 7 days ago"
266+
}
267+
268+
legend_enabled = true
269+
}
270+
271+
widget_billboard {
272+
title = "${var.cf_space_name} Table Check Count - Fail"
273+
274+
row = 9
275+
column = 9
276+
width = 3
277+
height = 3
278+
279+
nrql_query {
280+
query = "SELECT count(*) FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('DBMISSINGTABLES', insensitive: true) SINCE 7 days ago"
281+
}
282+
283+
legend_enabled = true
284+
}
225285
}
226286
}

0 commit comments

Comments
 (0)
Please sign in to comment.