Monitoring glossary
The RED method
RED stands for rate, errors and duration: three numbers that describe any request-driven service. It gives every service the same dashboard and the same first questions.
3 min read8 sectionsUpdated
On this page
What RED measures
The RED method, described by Tom Wilkie, applies to anything that serves requests: APIs, web backends, gRPC services, even queue consumers if you treat each message as a request.
- Rate: how busy the service is. Watch for unexpected drops as well as spikes.
- Errors: how often it fails. Use a rate (failures divided by total) for alerting, since raw counts grow with traffic.
- Duration: how long requests take, as a histogram so you can read p50, p95 and p99.
Computing RED from traces
You do not need separate metrics code. Every server span already has a start, an end and a status, so:
- Rate is the count of server spans per second, grouped by service and route.
- Errors are server spans with an error status or an HTTP 5xx code.
- Duration comes from span durations, collected into histograms that merge correctly across time.
This is what APM tools do. In VitalRix, the APM overview and the endpoints table show RED for every service and normalized route (GET /orders/:id), with p50, p95 and p99.
Alerts worth setting
- Error rate above a threshold (for example 2%) for 5 minutes, per service, with a minimum request count so a single failure at 3 a.m. does not page.
- p95 duration sustained above your target for 10 minutes on the routes users notice.
- Rate falling far below its normal level, which often means upstream traffic cannot reach you.
Better still, express error rate and latency as SLOs and alert on burn rate.
How is RED different from the golden signals?
RED drops saturation and focuses on what the service’s callers experience. Pair it with the USE method for resources to cover saturation.
Should errors include 4xx responses?
Usually not. A 4xx means the client sent a bad request. Count them separately, and alert only if they jump, which can signal a broken client release.
Related reading
- HAProxy monitoring: backends, errors and queues: Monitor HAProxy: the stats page and Prometheus endpoint, backend server health, 5xx rates, queue length, session limits and response times, with alerts to set.
- What are DORA metrics?: DORA metrics explained: deployment frequency, lead time for changes, change failure rate and time to restore, how to measure each from your tools.
- Service level indicators (SLIs): Save an SLI once from uptime checks, API latency or errors. See it over the last hour, day, week and month, and build SLOs and SLAs on it.
- GraphQL API monitoring: Monitor GraphQL APIs properly: errors hidden inside 200 responses, latency per operation, resolver tracing, query depth, and uptime checks that assert on data.
- What is distributed tracing?: Distributed tracing explained: traces, spans, context propagation, sampling and how to read a trace waterfall to find the slow or failing call.
- The three pillars of observability: Logs, metrics and traces compared: what each pillar of observability is good at, what it costs, and how to link them so one alert leads to the cause.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.