Skip to content

The five standalone telemetry alarms that need no cost model (runner-pending, queue age, failure rate, spot interruptions, impersonation volume) #877

Done

Description

@athvin

Child of #667, which is blocked on split cost allocation (#563) and on a real runner workload — these five alarms are independent of both and #667's own text says to land them first.

The five

  1. runner pod pending > 600s — the vCPU quota trap leaving a pod Pending forever; documented in aws-account-operations and already costly in practice.
  2. oldest queued job age > 900s — the SKIP-LOCKED queue's age, from Postgres.
  3. attempt failure rate > 25%/h — from task_instances.
  4. spot interruption rate — how the spot assumption gets verified rather than trusted.
  5. impersonation volume — free the moment erweb.audit has rows; the most security-valuable of the set.

Delivered implementation (2026-11-09)

#1050 / merged PR #1051 implements the first two age signals, their dev alarms, and an independent pod-observation heartbeat. The merge/apply/deploy watch and independent live-readback limitations are recorded in the PR ledger. This does not establish SNS confirmation or complete the other three signals. This card remains open and its board status is unchanged.

Shape

Aggregate scalars with NO tenant dimension (the cardinality rule in the observability skill); the tenant's identity rides in the report payload, never a label. Some of these need a metric that does not exist yet (queue age, impersonation volume) — emit from er-server per the observability skill's registry rules, alarm in Terraform under infra/terraform/.

Done when

  • each of the five has an emitted metric or a stated existing source
  • five CloudWatch alarms wired in Terraform with the alert path confirmed (SNS subscription confirmed, not just created — the health-sweep trap)
  • the alarm names/thresholds recorded in the observability reference where the next session finds them

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions