Skip to content

Fix span-export alarms to match CloudWatch dimensions and delta counters #985

Closed

Description

@athvin

PR #942 added span-export counters and alarms for #941. Its post-merge live verification found two mismatches that leave the alarms unable to detect export silence:

  • ListMetrics returns er.telemetry.spans_ended and er.telemetry.spans_exported in ER/Dev with BOTH er.role=api and OTelLib=er-obs. The Terraform queries specify only er.role, so they address nonexistent series. Both alarms currently report OK because missing data is non-breaching.
  • The deployed awsemf exporter converts cumulative counters to interval deltas. The alarm applies RATE to Maximum as though CloudWatch retained cumulative counters. It must evaluate period totals instead. An exporter that has never succeeded also has no exported series, so that input needs explicit zero filling.

Evidence: 2026-11-09 post-merge read-only CloudWatch queries; infra/k8s/observability/otel-collector-values.yaml uses NoDimensionRollup; upstream v0.161.0 awsemf documentation explains delta conversion and first-point suppression: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.161.0/exporter/awsemfexporter/README.md .

Acceptance:

  • Both roles' alarm queries select the actual dimensions and sum EMF deltas over each 5-minute period.
  • Active/zero-export periods breach, including an absent export series; healthy and idle periods do not.
  • Terraform validation and CI plan pass; apply converges; live alarm configuration and data queries agree.

This is the first fix-forward for #942. The original intermittent exporter wedge remains a separate investigation.

Activity

  1. self-assigned this
    on Nov 9, 2026
  2. athvin commented on Nov 9, 2026

    @athvin
    OwnerAuthor

    Claimed in draft PR #986 as the first fix-forward for #942; 2026-11-09T02:27Z. Closing the draft releases this claim.

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

Metadata

Metadata

Assignees

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