diff --git a/modules/aurora-dashboard/main.tf b/modules/aurora-dashboard/main.tf index f90dd77..620bbfa 100644 --- a/modules/aurora-dashboard/main.tf +++ b/modules/aurora-dashboard/main.tf @@ -2,15 +2,16 @@ terraform { required_providers { lightstep = { source = "lightstep/lightstep" - version = "~> 1.70.1" + version = "~> 1.70.10" } } required_version = ">= v1.0.11" } -resource "lightstep_metric_dashboard" "aws_aurora_dashboard" { - project_name = var.lightstep_project - dashboard_name = "AWS AURORA" +resource "lightstep_dashboard" "aws_aurora_dashboard" { + project_name = var.lightstep_project + dashboard_name = "AWS Aurora" + dashboard_description = "Monitor AWS Aurora with this overview dashboard." chart { name = "Binary lag replica DB cluster" @@ -18,67 +19,39 @@ resource "lightstep_metric_dashboard" "aws_aurora_dashboard" { type = "timeseries" query { - query_name = "a" - display = "bar" - hidden = false - - metric = "aws.rds.aurora_binlog_replica_lag_count" - timeseries_operator = "delta" - - - group_by { - aggregation_method = "sum" - keys = ["DBClusterIdentifier"] - } - + query_name = "a" + display = "bar" + hidden = false + query_string = <