Repository navigation
feat(prod): install isolated telemetry and operational alarms - #1057
Merged
Merged
Conversation
Contributor
terraform plan
prod — 8 to add, 0 to changeShowing the last 58000 of 93674 characters — the full plan is in the run summary. + label = "profile"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "M",
+ "stage",
+ "maintain",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "maintain"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "M",
+ "stage",
+ "extract",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "extract"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "M",
+ "stage",
+ "train",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "train"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "M",
+ "stage",
+ "lake_init",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "lake_init"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "M",
+ "stage",
+ "other",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "other"
},
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Average"
+ title = "Task duration — M (mean ms)"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 12
+ y = 22
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "init",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "init"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "ingest",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "ingest"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "standardize",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "standardize"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "match",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "match"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "reconcile",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "reconcile"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "assemble",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "assemble"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "finish",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "finish"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "apply_staged",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "apply_staged"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "write_back_scan",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "write_back_scan"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "reconcile_schema",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "reconcile_schema"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "profile",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "profile"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "maintain",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "maintain"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "extract",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "extract"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "train",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "train"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "lake_init",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "lake_init"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "L",
+ "stage",
+ "other",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "other"
},
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Average"
+ title = "Task duration — L (mean ms)"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 0
+ y = 28
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "init",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "init"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "ingest",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "ingest"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "standardize",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "standardize"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "match",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "match"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "reconcile",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "reconcile"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "assemble",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "assemble"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "finish",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "finish"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "apply_staged",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "apply_staged"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "write_back_scan",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "write_back_scan"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "reconcile_schema",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "reconcile_schema"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "profile",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "profile"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "maintain",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "maintain"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "extract",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "extract"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "train",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "train"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "lake_init",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "lake_init"
},
],
+ [
+ "ER/Prod",
+ "er.tasks.duration",
+ "resource_class",
+ "other",
+ "stage",
+ "other",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "other"
},
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Average"
+ title = "Task duration — other (mean ms)"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 12
+ y = 28
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.tasks.retries",
+ "resource_class",
+ "S",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m0"
+ visible = false
},
],
+ [
+ "ER/Prod",
+ "er.tasks.retries",
+ "resource_class",
+ "M",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m1"
+ visible = false
},
],
+ [
+ "ER/Prod",
+ "er.tasks.retries",
+ "resource_class",
+ "L",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m2"
+ visible = false
},
],
+ [
+ "ER/Prod",
+ "er.tasks.retries",
+ "resource_class",
+ "other",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m3"
+ visible = false
},
],
+ [
+ {
+ expression = "m0/PERIOD(m0)"
+ id = "r0"
+ label = "S"
},
],
+ [
+ {
+ expression = "m1/PERIOD(m1)"
+ id = "r1"
+ label = "M"
},
],
+ [
+ {
+ expression = "m2/PERIOD(m2)"
+ id = "r2"
+ label = "L"
},
],
+ [
+ {
+ expression = "m3/PERIOD(m3)"
+ id = "r3"
+ label = "other"
},
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Sum"
+ title = "retry task events / second"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 0
+ y = 34
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.tasks.completed",
+ "resource_class",
+ "S",
+ "outcome",
+ "no_op",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m0"
+ visible = false
},
],
+ [
+ "ER/Prod",
+ "er.tasks.completed",
+ "resource_class",
+ "M",
+ "outcome",
+ "no_op",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m1"
+ visible = false
},
],
+ [
+ "ER/Prod",
+ "er.tasks.completed",
+ "resource_class",
+ "L",
+ "outcome",
+ "no_op",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m2"
+ visible = false
},
],
+ [
+ "ER/Prod",
+ "er.tasks.completed",
+ "resource_class",
+ "other",
+ "outcome",
+ "no_op",
+ "OTelLib",
+ "er-obs",
+ {
+ id = "m3"
+ visible = false
},
],
+ [
+ {
+ expression = "m0/PERIOD(m0)"
+ id = "r0"
+ label = "S"
},
],
+ [
+ {
+ expression = "m1/PERIOD(m1)"
+ id = "r1"
+ label = "M"
},
],
+ [
+ {
+ expression = "m2/PERIOD(m2)"
+ id = "r2"
+ label = "L"
},
],
+ [
+ {
+ expression = "m3/PERIOD(m3)"
+ id = "r3"
+ label = "other"
},
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Sum"
+ title = "no_op task events / second"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 12
+ y = 34
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "S",
+ "reason",
+ "oom",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "S oom"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "S",
+ "reason",
+ "evicted",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "S evicted"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "M",
+ "reason",
+ "oom",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "M oom"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "M",
+ "reason",
+ "evicted",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "M evicted"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "L",
+ "reason",
+ "oom",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "L oom"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "L",
+ "reason",
+ "evicted",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "L evicted"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "other",
+ "reason",
+ "oom",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "other oom"
},
],
+ [
+ "ER/Prod",
+ "er.pods.failures",
+ "resource_class",
+ "other",
+ "reason",
+ "evicted",
+ "OTelLib",
+ "er-obs",
+ {
+ label = "other evicted"
},
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Sum"
+ title = "Confirmed pod OOM kills and evictions / minute"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 24
+ x = 0
+ y = 40
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.jobs.queue.oldest_age",
+ "OTelLib",
+ "er-obs",
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Maximum"
+ title = "Oldest queued job (seconds, includes backoff)"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 0
+ y = 46
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.pods.pending.oldest_age",
+ "OTelLib",
+ "er-obs",
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Maximum"
+ title = "Oldest Pending runner pod (seconds)"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 12
+ x = 12
+ y = 46
},
+ {
+ height = 6
+ properties = {
+ metrics = [
+ [
+ "ER/Prod",
+ "er.pods.snapshots",
+ "OTelLib",
+ "er-obs",
],
]
+ period = 60
+ region = "us-east-2"
+ stat = "Sum"
+ title = "Successful managed-pod snapshots / minute (expected about 2)"
+ view = "timeSeries"
}
+ type = "metric"
+ width = 24
+ x = 0
+ y = 52
},
]
}
)
+ dashboard_name = "er-prod-operations"
+ id = (known after apply)
+ region = "us-east-2"
}
# module.operations.aws_cloudwatch_metric_alarm.age["pending"] will be created
+ resource "aws_cloudwatch_metric_alarm" "age" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "Oldest Pending runner pod (seconds) exceeds 600 seconds. Inspect pod scheduling, image pulls, node capacity and account vCPU quotas. Require the matching snapshot heartbeat before treating a quiet chart as healthy."
+ alarm_name = "er-prod-pod-pending"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ datapoints_to_alarm = 1
+ dimensions = {
+ "OTelLib" = "er-obs"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "er.pods.pending.oldest_age"
+ namespace = "ER/Prod"
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ period = 60
+ region = "us-east-2"
+ statistic = "Maximum"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 600
+ treat_missing_data = "notBreaching"
}
# module.operations.aws_cloudwatch_metric_alarm.age["queue"] will be created
+ resource "aws_cloudwatch_metric_alarm" "age" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "Oldest queued job (seconds, includes backoff) exceeds 900 seconds. Inspect dispatcher readiness, job backoff, concurrency and runner capacity. Require the matching snapshot heartbeat before treating a quiet chart as healthy."
+ alarm_name = "er-prod-queue-oldest"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ datapoints_to_alarm = 1
+ dimensions = {
+ "OTelLib" = "er-obs"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "er.jobs.queue.oldest_age"
+ namespace = "ER/Prod"
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ period = 60
+ region = "us-east-2"
+ statistic = "Maximum"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 900
+ treat_missing_data = "notBreaching"
}
# module.operations.aws_cloudwatch_metric_alarm.pod_failure["evicted"] will be created
+ resource "aws_cloudwatch_metric_alarm" "pod_failure" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "A runner evicted was confirmed in the last five minutes. Inspect the task's durable termination reason and resource class; check memory, ephemeral storage and node disruption before retrying."
+ alarm_name = "er-prod-pod-evicted"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ region = "us-east-2"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 0
+ treat_missing_data = "notBreaching"
+ metric_query {
+ id = "p0"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "evicted"
+ "resource_class" = "S"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ id = "p1"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "evicted"
+ "resource_class" = "M"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ id = "p2"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "evicted"
+ "resource_class" = "L"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ id = "p3"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "evicted"
+ "resource_class" = "other"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ expression = "SUM([FILL(p0,0),FILL(p1,0),FILL(p2,0),FILL(p3,0)])"
+ id = "total"
+ return_data = true
# (2 unchanged attributes hidden)
}
}
# module.operations.aws_cloudwatch_metric_alarm.pod_failure["oom"] will be created
+ resource "aws_cloudwatch_metric_alarm" "pod_failure" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "A runner oom was confirmed in the last five minutes. Inspect the task's durable termination reason and resource class; check memory, ephemeral storage and node disruption before retrying."
+ alarm_name = "er-prod-pod-oom"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanThreshold"
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ region = "us-east-2"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 0
+ treat_missing_data = "notBreaching"
+ metric_query {
+ id = "p0"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "oom"
+ "resource_class" = "S"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ id = "p1"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "oom"
+ "resource_class" = "M"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ id = "p2"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "oom"
+ "resource_class" = "L"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ id = "p3"
+ return_data = false
# (3 unchanged attributes hidden)
+ metric {
+ dimensions = {
+ "OTelLib" = "er-obs"
+ "reason" = "oom"
+ "resource_class" = "other"
}
+ metric_name = "er.pods.failures"
+ namespace = "ER/Prod"
+ period = 300
+ stat = "Sum"
# (1 unchanged attribute hidden)
}
}
+ metric_query {
+ expression = "SUM([FILL(p0,0),FILL(p1,0),FILL(p2,0),FILL(p3,0)])"
+ id = "total"
+ return_data = true
# (2 unchanged attributes hidden)
}
}
# module.operations.aws_cloudwatch_metric_alarm.pod_snapshot_missing will be created
+ resource "aws_cloudwatch_metric_alarm" "pod_snapshot_missing" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "No successful managed-pod snapshots for three minutes. Inspect Kubernetes API access, dispatcher readiness and metric export; the pending-age gauge is stale until this recovers. Database snapshots are independent."
+ alarm_name = "er-prod-pod-snapshot-missing"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ datapoints_to_alarm = 3
+ dimensions = {
+ "OTelLib" = "er-obs"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 3
+ id = (known after apply)
+ metric_name = "er.pods.snapshots"
+ namespace = "ER/Prod"
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ period = 60
+ region = "us-east-2"
+ statistic = "Sum"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 1
+ treat_missing_data = "breaching"
}
# module.operations.aws_cloudwatch_metric_alarm.queue_depth will be created
+ resource "aws_cloudwatch_metric_alarm" "queue_depth" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "At least 100 jobs have waited for 15 minutes. Inspect dispatcher readiness, per-class concurrency, pod capacity and job backoff. Includes scheduled delays; confirm service rate before changing capacity."
+ alarm_name = "er-prod-queue-backlog"
+ arn = (known after apply)
+ comparison_operator = "GreaterThanOrEqualToThreshold"
+ datapoints_to_alarm = 3
+ dimensions = {
+ "OTelLib" = "er-obs"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 3
+ id = (known after apply)
+ metric_name = "er.jobs.queue.total"
+ namespace = "ER/Prod"
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ period = 300
+ region = "us-east-2"
+ statistic = "Minimum"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 100
+ treat_missing_data = "notBreaching"
}
# module.operations.aws_cloudwatch_metric_alarm.snapshot_missing will be created
+ resource "aws_cloudwatch_metric_alarm" "snapshot_missing" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ alarm_description = "No successful queue/concurrency snapshots for three minutes. Check dispatcher process, database reads and the metric export pipeline; empty queue charts are not evidence of idle until this recovers."
+ alarm_name = "er-prod-operational-snapshot-missing"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ datapoints_to_alarm = 3
+ dimensions = {
+ "OTelLib" = "er-obs"
}
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 3
+ id = (known after apply)
+ metric_name = "er.ops.snapshots"
+ namespace = "ER/Prod"
+ ok_actions = [
+ "arn:aws:sns:us-east-2:797781631727:er-alerts",
]
+ period = 60
+ region = "us-east-2"
+ statistic = "Sum"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ threshold = 1
+ treat_missing_data = "breaching"
}
Plan: 8 to add, 0 to change, 0 to destroy.
|
athvin
marked this pull request as ready for review
November 9, 2026 14:52
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #944
Installs the owner-selected private production OpenObserve store and shippers through the existing deploy workflow. Production uses its own secret, bucket and Aurora metadata DSN; the store mounts a checksum-verified RDS CA bundle for verify-full. Fluent Bit writes
/er/prod/containers; the collector writes/er/prod/metricsandER/Prod. Adds the production operational dashboard/alarms against that metric namespace.Prerequisite #1055 provides the bucket, Pod Identity and credential. That prerequisite applied successfully in main infra run 42637496178 (all three environments). Live AWS confirms the encrypted production bucket and AWSCURRENT secret; no secret contents were printed. Development keeps its existing store and configuration. The shared reconciler fingerprints the environment and secret identity, rejects unknown environments, and verifies rollout before recording success.
Validation: two environment-boundary regression tests failed against the old code, then the full observability helper suite passed (10 tests). All 34 local CI helper tests, actionlint, Bash syntax, workflow-shell/scripts-home gates, Terraform production validation and skills-check pass. Helm/Kustomize renders confirm production destinations and readable CA mount. The CA download matches the application images’ pinned SHA-256.
Risk: this installs additional production telemetry workloads. The existing single-node store uses Recreate and an emptyDir WAL, so recent unflushed telemetry may be lost on restart; persisted objects and metadata stay in S3/Aurora. Rollback disables the installer/collector while retaining the data resources. SNS delivery remains blocked on owner confirmation (#1056), independently of telemetry ingestion.
Post-merge ledger
Closed by: Codex · session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-28.lan· 2026-11-09T15:28:57.004071+00:00mainis green with this change on it — merge06bc5f0d31879af9c3007d814ffcb1acbbb9d5e7at 14:58:08Z. Exact-merge Rust 42639867651, frontend 42639867881, infra 42639867986 and devcontainer 42639867639 succeeded. Watched through 2026-11-09T15:28:57.004071+00:00, more than 30 minutes. Descendantf7fb8b4calso has successful Rust 42642270239, frontend 42642270203, infra 42642270207, images 42642270269 and devcontainer 42642270236; ancestry verified. Public availability observations are recorded below, not hidden by the workflow greens.images— 42639867878 succeeded; image source comparison correctly reused unchanged application images for this infrastructure/configuration change.deploy— 42639904666 explicitly deployed06bc5f0dsuccessfully in both environments, cutting prod to blue and dev to green. Independent CloudWatch Logs Insights founder-server listeningfrom productionapp.web-api-blue-59f8bbcbbb-vhd24.er-serverat 15:00:11.353Z (query1289ab65-8954-43c5-bc79-9524c430c81b) and developmentci.web-api-green-557958f6cb-csvzk.er-serverat 14:59:50.436Z (queryfd2d28bc-d3f6-4655-aecc-c985b1f65ca4). Production collector emittedEverything is readyat 14:59:23.290Z. Later descendant deploy 42643069324 also succeeded; its production process emitted startup at 15:17:44.018Z (queryd4aca9db-05fa-4124-a3bd-7f38de8fb3b2).Specific to this change
/er/prod/containersstreams, collector startup, and 159 OpenObserve trace batches returning HTTP 200 in the verification window (query76bf7b1c-84e7-482f-b39f-30d481e16806).er-prod-obs-797781631727/files/default/traces/default/written 15:19:58Z, sizes 21,117 / 85,052 / 33,443 bytes. No payloads or secret values were exported.ER/ProdandER/Devheartbeat samples at two/minute and queue/pending oldest-age gauges at zero (dimensionOTelLib=er-obs, 15:07–15:08Z). All seven operational alarms in both environments read OK. Notification receipt is separately deferred to Confirm the er-alerts email subscription and prove alert delivery #1056./demo-login/default/dashboard, rendered the 23-record demo, and emitted no JavaScript errors, including after the later application deploy.f7fb8b4cdeployment. Surrounding samples recovered. Kubernetes independently reported web/API probe timeouts at 15:20:53Z, 15:20:56Z and 15:21:04Z; current pod is 2/2 Running with zero restarts and the ELB target is healthy. Cause and precise outage duration remain unresolved in Investigate transient public 503 during production blue/green cutover #1043; this is not a claim of uninterrupted availability.