Skip to content

feat(prod): install isolated telemetry and operational alarms - #1057

Merged
athvin merged 1 commit into
mainfrom
issue/944-prod-observability-install
Nov 9, 2026
Merged

athvin merged 1 commit into
mainfrom
issue/944-prod-observability-install

Conversation

@athvin

@athvin athvin commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

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/metrics and ER/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-32c20c5e0da9 on Mac-28.lan · 2026-11-09T15:28:57.004071+00:00

Specific to this change

  • Production telemetry reached its destinations: live /er/prod/containers streams, collector startup, and 159 OpenObserve trace batches returning HTTP 200 in the verification window (query 76bf7b1c-84e7-482f-b39f-30d481e16806).
  • Durable trace delivery independently verified by S3 listing: three Parquet files under 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.
  • Operational signal readback: real ER/Prod and ER/Dev heartbeat samples at two/minute and queue/pending oldest-age gauges at zero (dimension OTelLib=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.
  • Login regression verification: Chromium and WebKit both reached /demo-login/default/dashboard, rendered the 23-record demo, and emitted no JavaScript errors, including after the later application deploy.
  • Public watch completed: 354 status-only samples from 14:57:03Z through 2026-11-09T15:28:52.388879+00:00; 2 sampled HTTP 503s at 15:18:50Z and 15:20:56Z around/after the later f7fb8b4c deployment. 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.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

terraform plan

ab06a87 · run log and full plans

env add change destroy
state-backend (plan only) 0 0 0
core 0 0 0
dev 0 0 0
prod 8 0 0

Planned with -refresh=false, so this is the config-versus-state diff and
not out-of-band drift. That is a security choice, not a speed one: a refreshing
plan reads secret values, and the plan role is assumable from any PR branch —
which can edit the workflow it runs under. Drift is caught at apply time, which
refreshes fully.

prod — 8 to add, 0 to change

Showing 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prod observability install: span-store topology decision + prod shipper values

2 participants