All case studies

On-call

Three noisy alarms, three different causes

Alarms that fire every day teach people to ignore alarms. I took three of the noisiest ones in our channels and worked out what each was actually saying.

Stack
CloudWatch alarms, CloudTrail, EKS audit logs, Service Control Policies, Lambda, Data Lifecycle Manager, ALB
My role
Investigation and recommendations
Outcome
One loop explained, one long-standing bug handed to its owners with evidence, and two dead jobs being decommissioned.

A policy-deny alert every 30 seconds

One channel reports actions blocked by our organization’s Service Control Policies. It started posting a new alert about every 30 seconds, all from an EKS cluster role. It looked like the alert pipeline was duplicating messages. It wasn’t. Each alert was a separate CloudTrail event.

The EKS API server audit log showed that someone had patched a Kubernetes Service from type LoadBalancer to ClusterIP. The cloud controller then tried to delete the old load balancer. The SCP denies DeleteLoadBalancer, so the controller kept retrying. The loop only ends when someone exempt from the SCP deletes the load balancer, or the Service goes back to its old type.

A 5xx alarm that fired every night

A load balancer 5xx alarm went off almost every night, in the same half hour. Logs Insights on the app’s log group showed one endpoint returning 500 on every single call for one tenant. The database connection string had an empty host, so the database driver tried a local Unix socket instead.

Its errors per minute matched the load balancer’s 5xx count exactly, across all 30 days of retained logs. The feature had never worked since it shipped. The nightly burst was that tenant’s batch job. The high-traffic endpoint next to it didn’t need the database and was fine. I gave the owning team the evidence and the config line to fix. Until that ships, the alarm is still noise, which breaks the rule at the bottom of this page. The right interim step is to scope the alarm to exclude that one endpoint.

A backup job that crashed every day

A Lambda that made nightly machine-image backups failed every day with an UnboundLocalError. My first reading was that backups had stopped months earlier. That was wrong, and I corrected it before anyone acted on it. A Data Lifecycle Manager policy had replaced the Lambda and was covering all 56 backup-tagged instances. The new tag it introduced was what broke the old code.

My recommendation was not to fix the Lambda, but to decommission it. Its schedules and alarms are now disabled. Deleting the functions, and about 69 leftover machine images together with their EBS snapshots, follows as separate reviewed changes. Deregistering an image alone leaves its snapshots behind, still billed.

What I took from it

  • A deny that keeps repeating is usually a controller retry loop, not a broken alert.
  • Before reporting a backup gap, check every backup mechanism in the region.
  • An alarm that always fires should be fixed, rescoped or deleted. Leaving it trains people to ignore the channel.