Skip to content

Commit

Permalink
Add widgets for Row Count
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Oct 11, 2024
1 parent 683043c commit 5cf469a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions terraform/shared/modules/newrelic/logreview.tf
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,37 @@ resource "newrelic_one_dashboard" "log_review_dashboard" {
query = "SELECT `message`,`timestamp` FROM Log WHERE allColumnSearch('STARTUP_CHECK', insensitive: true) AND `message` LIKE '%db_to_s3%' AND `message` LIKE '%PASS%' AND tags.space_name ='${var.cf_space_name}' SINCE 2 hours ago"
}

legend_enabled = true
}
widget_table {
title = "${var.cf_space_name} Backup and Row Count"

row = 11
column = 1
width = 8
height = 3

nrql_query {
query = "SELECT `message` FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('\"TABLEROWCOUNT\"', insensitive: true) SINCE 2 hours ago"
}
nrql_query {
query = "SELECT `message`,`timestamp` FROM Log WHERE allColumnSearch('STARTUP_CHECK', insensitive: true) AND `message` LIKE '%db_to_s3%' AND `message` LIKE '%PASS%' AND tags.space_name ='${var.cf_space_name}' SINCE 2 hours ago"
}

legend_enabled = true
}
widget_table {
title = "${var.cf_space_name} Row Count"

row = 12
column = 1
width = 8
height = 3

nrql_query {
query = "SELECT `message` FROM Log WHERE `tags.space_name` = '${var.cf_space_name}' AND allColumnSearch('\"TABLEROWCOUNT\"', insensitive: true) SINCE 7 days ago"
}

legend_enabled = true
}
}
Expand Down

0 comments on commit 5cf469a

Please sign in to comment.