Covers the RED method for request-driven services and the USE method for resources, how they map to built-in .NET and Azure metrics, how they relate to Google's four golden signals, and how to use them to structure dashboards and triage.
RED is for services that handle requests: Rate (requests per second), Errors (failed requests, usually 5xx and timeouts, as a ratio) and Duration (latency distribution, p50/p95/p99). It answers 'are users hurting?'. 4xx responses are normally the caller's mistake, so track them separately rather than in the error ratio.
USE is for resources: for each CPU, memory, disk, connection pool, thread pool or database, check Utilisation (how busy), Saturation (how much work is queued) and Errors. It answers 'which resource is the bottleneck?'.
In a microservice system you apply RED to every service and to its outbound dependencies, which lets you follow a problem downstream, then USE on the resources of the service at fault. In .NET, RED comes almost entirely from the built-in http.server.request.duration histogram; USE comes from System.Runtime (thread pool queue, GC), the container or node, and the database. The trade-off: RED is simple and user-centred but says nothing about cause, so you need USE underneath it to diagnose.
"They're two checklists for two kinds of thing. RED, from Tom Wilkie, is for anything that serves requests: an API, a gRPC service, a message consumer. For each service, and usually each route, I want the rate of requests, the errors among them, and the duration as a distribution. That's the customer's view: if RED is fine, users are fine, whatever the CPU graph says.
USE, from Brendan Gregg, is for resources: CPU, memory, disks, network, but also software resources like the thread pool, the database connection pool or a Service Bus queue. For each one I check utilisation (how busy it is), saturation (how much work is waiting) and errors. Saturation is the one people forget, and it's often the real signal: a CPU at 70% is fine, but a thread pool queue of 500 items means requests are waiting even though no single number looks maxed out.
On a .NET API I get RED almost for free:
http.server.request.durationgives the count, which becomes rate, the status code tag gives errors, and the buckets give p50, p95 and p99. For USE I chart CPU and memory against the container limit,dotnet.thread_pool.queue.lengthand thread count, GC pause time, and for the database the CPU or DTU percentage, wait stats and connection pool waits. The four golden signals from the Google SRE book are essentially RED plus saturation.The mistake I see is dashboards that start with CPU and memory. Those are causes. You start with RED to know whether there's a problem and how big it is, then drop to USE to find which resource is responsible."
| RED | USE | |
|---|---|---|
| Applies to | Services, endpoints, consumers | Resources (hardware and software) |
| Question | Are users being served well? | What is the bottleneck? |
| Signals | Rate, Errors, Duration | Utilisation, Saturation, Errors |
| Alert on it? | Yes: symptoms users feel | Mostly no: for diagnosis and capacity |
| Source in .NET | http.server.request.duration, http.client.request.duration, consumer metrics |
System.Runtime, container/node metrics, SQL metrics |
| Resource | Utilisation | Saturation | Errors |
|---|---|---|---|
| CPU (container) | CPU % of limit | Throttled periods (container_cpu_cfs_throttled_periods_total) |
n/a |
| Memory | Working set vs limit | GC pause time, Gen2 frequency | OOM kills |
| Thread pool | Thread count | dotnet.thread_pool.queue.length |
n/a |
| SQL connection pool | Connections in use vs max | Waits for a connection, timeouts | SqlException count |
| Azure SQL | CPU / DTU % | Wait stats, blocked sessions | Failed connections, deadlocks |
| Service Bus queue | Throughput vs limit | Active message count, message age | Dead-lettered messages |
During a sale, RED on the orders API showed p95 going from 150 ms to 1.8 s with errors still near 0%. USE showed pod CPU at only 55%, but dotnet.thread_pool.queue.length above 400 and SQL connection pool waits rising: a synchronous database call was blocking threads. Fixing it brought p95 back to 170 ms at twice the load.
Checks that the candidate has a structured way to choose metrics and to triage, rather than a pile of graphs.
Green flags
Red flags
user impact?
┌──────────────────────┐
│ RED per service │ rate ↓? errors ↑? p95 ↑?
└──────────┬───────────┘
│ which service is the origin? (traces, dependency RED)
▼
┌──────────────────────┐
│ USE per resource │ CPU, memory, thread pool, DB, queue
└──────────┬───────────┘
▼
root cause (profiles, dumps, query plans)
RED on dependencies (http.client.request.duration, SQL dependency calls) lets you follow the problem downstream: if your p95 rose and your database call p95 rose by the same amount, look at the database's USE.
Utilisation is the fraction of time a resource was busy. Queueing theory says latency rises sharply as utilisation approaches 100% (for an M/M/1 queue, waiting time is proportional to ρ / (1 − ρ)). At 50% utilisation the wait is 1× the service time; at 90% it is 9×. Saturation measures that queue directly, which is why it's the better early warning.
In .NET the thread pool is the classic example: CPU can be low while the queue grows because threads are blocked on I/O (sync-over-async). The pool injects new threads slowly (the hill-climbing algorithm adds roughly one or two per second once you are above the minimum), so the queue length shows the problem long before CPU does.
Rate = messages processed per second, Errors = failed or dead-lettered, Duration = processing time and message age (time from enqueue to completion). For queues, the USE saturation signal is backlog and oldest message age.
One row of RED at the top (with SLO lines), one row of RED for each critical dependency, then USE rows for the runtime, the container and the database. Every service uses the same layout so anyone on call can read it.
sum(rate(http_server_request_duration_seconds_count[5m])), the 5xx ratio and histogram_quantile(0.95, ...) for a sample API.Thread.Sleep(500) to a hot endpoint, run k6 and watch CPU vs dotnet.thread_pool.queue.length.requests: count(), countif(success == false), percentile(duration, 95) by bin(timestamp, 1m).RED queries in PromQL and KQL, and a USE check with dotnet-counters:
# PromQL: RED for one service (OpenTelemetry metric names in Prometheus form)
# Rate
sum by (http_route) (rate(http_server_request_duration_seconds_count{service_name="orders-api"}[5m]))
# Errors (5xx ratio)
sum(rate(http_server_request_duration_seconds_count{service_name="orders-api",http_response_status_code=~"5.."}[5m]))
/ sum(rate(http_server_request_duration_seconds_count{service_name="orders-api"}[5m]))
# Duration (p95, merged across pods)
histogram_quantile(0.95, sum by (le) (rate(http_server_request_duration_seconds_bucket{service_name="orders-api"}[5m])))
# USE for the .NET runtime on one pod: thread pool saturation and GC
dotnet-counters monitor -n Orders.Api --counters System.Runtime[dotnet.thread_pool.queue.length,dotnet.thread_pool.thread.count,dotnet.gc.pause.time]
// KQL (Application Insights): RED per operation in 5-minute bins
requests
| where timestamp > ago(3h) and cloud_RoleName == "orders-api"
| summarize rate_per_s = count() / 300.0,
error_ratio = round(100.0 * countif(toint(resultCode) >= 500) / count(), 2),
p95_ms = percentile(duration, 95)
by bin(timestamp, 5m), name
| order by timestamp asc
// RED for a queue consumer: one histogram gives rate, errors and duration
namespace Orders.Worker;
using System.Diagnostics;
using System.Diagnostics.Metrics;
public sealed class ConsumerMetrics(IMeterFactory factory)
{
private readonly Histogram<double> _duration = factory.Create("Orders.Worker")
.CreateHistogram<double>("messaging.process.duration", unit: "s");
public async Task MeasureAsync(string queue, Func<CancellationToken, Task> handler, CancellationToken ct)
{
var start = Stopwatch.GetTimestamp();
var outcome = "success";
try { await handler(ct); }
catch { outcome = "error"; throw; }
finally
{
// count of records = rate, outcome tag = errors, buckets = duration
_duration.Record(Stopwatch.GetElapsedTime(start).TotalSeconds,
new("messaging.destination.name", queue), new("outcome", outcome));
}
}
}
RED and USE are checklists, not metrics. Their value is that they stop you missing things: RED keeps you honest about user impact, USE forces you to check every resource, including software ones like the thread pool and connection pool, where .NET services actually saturate first. A senior engineer also knows what each costs: RED is almost free from built-in instrumentation; USE needs metrics from several layers (runtime, container, database, broker) and someone to wire them together.
| Method | When it fits | Cost | When not to rely on it alone |
|---|---|---|---|
| RED | Every request-driven service and consumer; SLOs and alerts | Built in (http.server.request.duration) |
Diagnosing cause; batch jobs with no requests |
| USE | Capacity planning, bottleneck hunting | Metrics from runtime, node, DB, broker | Deciding whether users are affected |
| Golden signals | Teams following Google SRE practice | Same as RED + saturation | When you need per-resource detail |
An incident dashboard must answer three questions in the first screen: are users hurting, since when, and where. So the top row is SLO status and error budget, then RED for the service (rate, 5xx ratio, p50/p95/p99) with the SLO threshold drawn on the panels. The next row is RED for each dependency (database, downstream APIs, queues) so you can see where the fault starts. Below that, USE panels for the runtime, pods and database, collapsed by default.
Every time series carries deploy and feature-flag annotations, because most incidents follow a change, and panels link to traces and logs filtered to the same service and time window. One template as code with service and region variables serves every service.
The trade-off: fewer panels make it faster to read, but you need drill-down paths for the detail you removed.
Alert on symptoms users feel, such as the request error-rate or latency SLI, failed synthetic journeys or orders per minute dropping, because causes like CPU at 80% often hurt nobody and miss failures with no resource signal at all. The best symptom alert is SLO burn rate: how fast you are spending the error budget. With a 99.9% SLO, a 14.4× burn over 1 hour (confirmed over 5 minutes) spends 2% of a 30-day budget and pages; 6× over 6 hours pages; slower burns raise a ticket.
Every alert needs who gets paged (the owning team's rotation), the threshold and window, a severity that decides page versus ticket, a dashboard link and a runbook with the first mitigation steps. Cause metrics stay on dashboards for diagnosis. The trade-off: fewer pages means a slightly later warning for slow-building problems, which tickets cover.
The .NET diagnostics tools all talk to the runtime over its diagnostics IPC channel, so they work on Windows, Linux and in containers without a debugger.
I start with counters because they are cheap, then pick the heavier tool the symptom points to. The trade-off is overhead and data sensitivity: a full dump contains every secret in memory.
How to tell it (STAR)
**S:** During a sale at [company], our orders API slowed to a 1.8-second p95 while CPU sat at 55%, so autoscaling did nothing. **T:** I was on call and needed to find the bottleneck fast. **A:** RED showed users were hurting but the database calls were not slower. Going through USE, I found the thread pool queue above 400 and threads blocked on a synchronous wrapper around an async SQL call. I raised min threads and scaled out manually to recover, then we made the path fully async and added thread pool saturation to the dashboard and autoscaler. **R:** p95 returned to 170 ms within [20] minutes, and the next sale handled [twice] the load with no incident.
Last updated 23 Nov 2026.