Skip to content
InfraChallenge Docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Limits and next steps

What is open in Task 3, stated as plainly as what is built, and the order of the next work.

Not verified against a live account

No AWS credentials were used. These come from documentation, exporter source code and a local ADOT run, not from AWS:

  • That the EMF events in /ecs/<name>-metrics become the metric Patent/Server suggestions.requests with exactly one dimension, outcome. This was checked with ADOT’s stdout output, not in CloudWatch.
  • That the alarm’s FILL(x, 0) works for an outcome series that has never had a datapoint. It is the same idiom as the existing 5xx alarm.
  • That the two task-role statements are enough for the EMF and X-Ray exporters. The list comes from the exporters’ source.
  • That X-Ray accepts the SDK’s random W3C trace IDs. AWS announced support for them, and the exporter’s skiptimestampvalidation gate is on by default.

Open

Topic Status
Paging Not built. alarm_email is null and there is no PagerDuty integration, so no alarm reaches a person today.
A dead collector is silent The sidecar is non-essential and ECS does not restart it. With no collector a task sends no metrics, and the alarm treats missing data as not breaching. Only the container health status shows it.
One window in CloudWatch The CloudWatch alarm is the 5-minute window only. The 1-hour window exists only in the Prometheus rule.
An OpenAI outage during a release rolls the release back The suggestion alarm is a deployment alarm, so it cannot tell a bad release from a bad provider.
The first failure of a new series Prometheus rate() misses the first increment of a new outcome series. The EMF exporter keeps it (retain_initial_value_of_delta_metric).
Only one metric in AWS Duration, in-flight and connections are local only. Autoscaling on in-flight suggestions is not built.
No timeout of our own on the model call The OpenAI SDK default is 600 s with retries, so a hung call shows in suggestions.in_flight long before it counts as ai_error.
Audit trail No actor; the address is the ALB’s; no account trail. See Logging and audit trail.
Privacy coverage Exported spans and uvicorn.error are scrubbed. A traceback from any other logger is not.
Document objective 99.9% non-5xx for document load and save is a stated objective with no burn-rate alert. The ALB 5xx-ratio alarm (5% over 3 minutes) covers it coarsely.
Local stack Not durable: Prometheus keeps 2 days, and everything is lost with docker compose down -v. Intervals of 5 s are for the demo.
Collector image Pulled from public ECR through the NAT. The server waits for the collector container to start (dependsOn START), so a failed pull of the collector image can keep the task from starting. Not tested.

Next, in order

Page a person

Subscribe PagerDuty to the alarm topic, and split SEV2 and SEV3 alarms. Until then the alert has no audience.

Verify in staging

Apply, release, then break the model in staging: see the metric and its dimension in CloudWatch, the alarm fire, and a release roll back.

Watch the watcher

Alarm when suggestions.requests has no data while the ALB has traffic, so a dead collector pages.

Account trail and detection

CloudTrail organisation trail with a log-archive account, GuardDuty, Config, Security Hub, and ALB, CloudFront and WAF logs.

Real client address and an actor

Take the client address from the hop CloudFront adds to X-Forwarded-For. Add the user to audit events once authentication exists.

Capacity signal

Send suggestions.in_flight to CloudWatch, load-test, and scale on it.

Mirror the collector image

An ECR pull-through cache for the ADOT image, so a public ECR outage cannot block task starts.

Was this page helpful?