# Lambda fleet triage

When an alert says "checkout is slow" and you have a dozen accounts, the first question is which function. **Fleet triage** answers it in one view: every Lambda function in the profiles and regions you pick, ranked by an on-fire score, with the reason under each name. Click the top row to open that function on the same time window, then follow its errors to the trace. See [AWS Lambda](https://arnscope.com/docs/lambda#error-groups).

It only reads, it shows what the read will cost before it runs, and it never polls.

<figure class="doc-video">
<video controls playsinline preload="none" poster="/media/docs/lambda/lambda-triage-explainer.webp?v=1" aria-label="Which Lambda is on fire? A narrated walkthrough of 84 seconds">
<source src="/media/docs/lambda/lambda-triage-explainer.webm?v=1" type="video/webm">
<source src="/media/docs/lambda/lambda-triage-explainer.mp4?v=1" type="video/mp4">
<track kind="captions" srclang="en" label="English" src="/media/docs/lambda/lambda-triage-explainer.vtt?v=1" default>
</video>
<figcaption>84 seconds, narrated, with captions: from a failing checkout at 2am to the function on fire, its error group and the failing call in its X-Ray trace. Sample data.</figcaption>
</figure>

<figure class="has-mobile">
<picture><source media="(max-width: 600px)" srcset="/media/lambda-triage-mobile.webp?v=1"><img src="/media/docs/lambda/lambda-fleet.webp?v=1" alt="Fleet triage over three profiles and three regions: payment-authorize in fernwood-prod scores 60 with 388 errors and a p95 1.9 times slower, ml-batch-scorer in fernwood-sandbox 50, report-export in fernwood-staging 41 near its timeout, eu-checkout-api 33 with 380 throttled; one profile-region is listed as access denied above the table." loading="lazy" decoding="async"></picture>
<figcaption>36 functions in 3 profiles × 3 regions, hottest first. The estimate beside Refresh is the CloudWatch cost of the next read. Sample data.</figcaption>
</figure>

## Open it

Open **Lambda** and click **Fleet triage** at the top of the function list. The first time, it reads the profile and region the page is on. Then choose:

- **Window:** 15m, 1h (the default), 3h or 24h. Each is compared with the window of the same length just before it, so a p95 that doubled in the last hour shows as a slowdown.
- **Profiles:** any of your AWS profiles. Production profiles are marked.
- **Regions:** any regions. Choosing **All** with more than eight regions asks once more, since each one is listed and billed on every refresh.

Your choice is remembered for next time. After you change profiles or regions, the bar says the view is out of date until you press **Refresh**.

## What is read, and what it costs

| Step | Call | Cost |
| --- | --- | --- |
| List the functions in each profile and region | `lambda:ListFunctions` (on open, a list ARNscope already holds is reused; **Refresh** lists again) | Free |
| Read their metrics | `cloudwatch:GetMetricData`, batched: six metrics per function, up to 83 functions per call, each metric covering both windows | $0.01 per 1,000 metrics, as CloudWatch bills it |

The header shows the estimate for the next read, for example **≈ 216 metrics · $0.002**, with **≥** while some regions have not been listed yet. A read of 10,000 metrics or more (about ten cents) waits for you to confirm it. The status bar says what the last read covered: how many regions, when, how many metrics and calls, and the cost.

Fleet triage reads when you open it, when you press **Refresh** and when you change the window. It never refreshes on a timer. **Stop** ends a read after the calls already in flight, and so does leaving the page. Up to four profile-regions are read at a time.

## The on-fire score

Each function gets a score from 0 to 100, the sum of four parts:

| Part | Points | Full points when |
| --- | --- | --- |
| **Errors** | up to 50 | a 10% error rate and at least 5 errors |
| **Throttles** | up to 20 | 5% of requests throttled and at least 5 of them |
| **Near timeout** | 15 | the slowest call took 90% or more of the function's timeout |
| **Slowdown** | up to 15 | p95 is 2× the previous window (it starts counting at 1.2×), with at least 20 calls in each window |

Errors and throttles scale with the count as well as the rate, so one failed call out of two does not top the list. A p95 over a handful of calls is noise, so the slowdown needs 20 calls in both windows. Scores under 5 show as **—**.

Under each name, a short line says what drives the score, for example "388 errors (9.2%) · p95 1.9× slower" or "max 59.1 s of 60 s". Hover the row for the full breakdown. Functions with nothing to report show their calls and peak concurrency instead.

## Read the table

| Column | What it shows |
| --- | --- |
| **Function · score** | The score chip and the function name, with the reasons under it |
| **Profile · region** | Where it runs; hidden when the read covered one profile and region |
| **Errors** | Error rate and count in the window; throttled requests under it |
| **Duration** | p95 and its change against the previous window; under it the slowest call against the timeout, amber at 90% or more |

The strip above the table counts **Functions** (with the idle ones hidden; **show** lists them), **On fire** (score 50 or more), **Erroring**, **Throttled** and **Near timeout**. Click a column header to sort by it instead of the score. **Columns** adds calls, throttles, p95 change, max ÷ timeout and peak concurrency. Filter by function, profile or region name. The table exports to CSV, and right-clicking the **Fleet triage** title copies the top 50 rows as tab-separated text, ready to paste into an incident channel.

Click a row (or press Enter) to open the function. In the page's own profile and region it opens in place; elsewhere it opens in its own tab. Either way the **Monitor** tab starts on the same time window, so the numbers match.

## When a region can't be read

One failure never blanks the table. Each profile and region that could not be read is a line above it, with the reason: **Access denied** (the role can't list functions or read metrics), **Signed out** (an expired SSO session), **Throttled**, or **Not read**. The same failure across several regions of one profile is one line. The other profiles and regions are ranked as usual.

## Permissions

| What | Actions |
| --- | --- |
| List functions | `lambda:ListFunctions` |
| Metrics | `cloudwatch:GetMetricData` |

Both are read-only. A profile without them shows as **Access denied** for its regions.

## Limitations

- **Metrics only.** The score comes from CloudWatch's `AWS/Lambda` metrics (invocations, errors, throttles, p95 and maximum duration, concurrency). Fleet triage reads no logs; open the function for its error groups and traces.
- **Function-level numbers.** It scores each function as a whole, not per version or alias.
- **Up to 2,000 functions per profile and region,** the first 2,000 by name; the view says when a region had more.
- **Metrics arrive with a delay.** CloudWatch publishes Lambda metrics a little after the calls, so a problem that started moments ago may not show yet.
- **Not a monitor.** It doesn't refresh on its own or notify you. For notifications, use [CloudWatch alarms](https://arnscope.com/docs/alarms).
- The score is a triage aid with fixed thresholds; it does not know your functions' normal error rates.

Want another signal in the score, or a different threshold? Write to [hello@arnscope.com](mailto:hello@arnscope.com).

Source: https://arnscope.com/docs/lambda-fleet-triage
