Skip to content

chore(lore-0346,lore-0347): drop three alarms, 14 unread metrics, trim the dashboard to 50 - #445

Open
stkrolikiewicz wants to merge 1 commit into
developfrom
chore/0346-0347-alarm-metric-cleanup
Open

stkrolikiewicz wants to merge 1 commit into
developfrom
chore/0346-0347-alarm-metric-cleanup

Conversation

@stkrolikiewicz

Copy link
Copy Markdown
Collaborator

Tasks 0346 and 0347, both from the 2026-11-13 read-only CloudWatch review. Re-checked against develop and live CloudWatch on 2026-12-03. Saves about $7 a month (3 alarms, ~13 hourly series, the $3 dashboard charge) and the duplicate Slack messages on every ingest stall.

0346: three alarms another alarm always beats

Alarm Why it goes What covers it
ledger-processor-no-invocations On every stall in the retained history, rollup-freshness-1m fired 2.5 to 11.7 min earlier (latest: 2026-11-22, 22:51 vs 23:03 UTC) rollup-freshness-1m, whose description now carries the "check the SNS subscription and BE publication" diagnosis
oracle-no-invocations oracle-dark-feed is FILL(written, 0) < 1 with missing = breaching, so a stopped schedule pages there ~15 min later oracle-dark-feed. LIVENESS_FROM_OWN_ALARM in lambda-baseline.ts makes the oracle's -errors and duration descriptions name it
mtls-notafter-probe-duration-near-timeout 91 runs averaged 1.1 s against a 60 s timeout; a timeout is an Error, and -errors pages on day 1 mtls-notafter-probe-errors (noDurationAlarm with that reason)

The runbooks, verify-xdr-protocol-gap.mjs and the 0139 MUTED list (32 → 30) no longer name them. SCF evidence is left as submitted.

0347: 14 metrics nothing reads, and the dashboard at 50

Stopped publishing:

  • CoarseSweepRuns, FailedRuns, DurationMs (AWS/Lambda Invocations, Errors, Duration say the same) and TablesSkipped (still in the log line). A failed sweep run is an Error now, so sweep_failure_metrics goes.
  • EnrichmentFrontierMonth, FrontierMonthsReopened, HistoricalDeadlineHit and HistoricalRowsEnriched. FrontierMonthsPending stays, because the reingest runbook reads it.
  • OracleRuns, OracleFailedRuns, OracleRowsSkipped and OracleSymbolsQueried. OracleRowsWritten=0 is still published on a failed pass, so dark-feed sees it.
  • ClickHouseDiskFreeBytes and per-role DaysToNotAfter (MinDaysToNotAfter stays).

Live get-dashboard on all three dashboards and git grep find no reader. The coarse-sweep runbook's "Metrics to watch" now points at AWS/Lambda.

Dashboard: 60 → 50 distinct metrics. The nine worker Throttles series go (0 for every worker, 2026-11-03..12-03), and so does ledger-processor ConcurrentExecutions. verify-dashboard-synth.mjs gains check 3d, which fails over 50. The count is of metric rows. The January bill confirms whether AWS counts the same way.

Checks

  • cargo test and clippy -D warnings --features lambda on the five changed crates.
  • Infra typecheck, lint and node tests (99).
  • verify-dashboard-synth.mjs: PASS, 50 metrics, 87 alarms on the strip.
  • cdk diff Observability + EventBridge: three alarm destroys, descriptions on five alarms, the dashboard, DashboardAlarmCount 90 → 87. The Lambda S3Key changes in that diff came from stub assets; the real deploy ships the rebuilt workers.

Before deploy

The last AC of both tasks: agreed with the other teams on the shared account, in rumblefishdev/stellar-x402#186 and rumblefishdev/soroban-block-explorer#733.

…m the dashboard to 50

0346: remove ledger-processor-no-invocations (rollup-freshness-1m fired
first on every stall, 2.5 to 11.7 min ahead), oracle-no-invocations
(oracle-dark-feed treats missing data as breaching; LIVENESS_FROM_OWN_ALARM
makes the -errors and duration descriptions name it) and
mtls-notafter-probe-duration-near-timeout (runs take ~1 s of 60 s; a
timeout pages through -errors first). Runbooks and the xdr watch text
no longer name them.

0347: stop publishing CoarseSweepRuns/FailedRuns/DurationMs/TablesSkipped,
four historical-drain metrics, OracleRuns/FailedRuns/RowsSkipped/
SymbolsQueried, ClickHouseDiskFreeBytes and per-role DaysToNotAfter. No
alarm or dashboard read them; the values stay in logs or AWS/Lambda.
The overview dashboard drops worker Throttles (0 for 30 days) and
ledger-processor ConcurrentExecutions: 60 -> 50 metrics, the free tier,
now checked by verify-dashboard-synth.mjs.

This branch has not been deployed

No deployments
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.

1 participant