liveBook · Manning

Error rate

As explained in Automating API Delivery

An error rate is the proportion of API requests or operations that result in errors within a defined period.

Error rate measures failed API requests within a defined time window. As a service-level metric, it reveals reliability problems and supports continuous feedback for API improvement. section 11.0 section 11.2

Use error rate effectively by:

  • Tracking failures per second, minute, week, or month to expose usage and reliability patterns. section 11.2.1
  • Separating HTTP 4xx user errors from 5xx server-side errors. section 11.2.1
  • Combining error counts with request rate and duration in the RED method for microservice monitoring. section 11.2.1
  • Adding contextual dimensions such as geography and application logs to investigate suspicious or infrastructure-related failures. section 11.2.1
  • Configuring alerts when the rate exceeds a defined threshold and relating thresholds to API SLOs. section 11.2.1 section 11.4

Regional authentication failures

A large concentration of 401 Unauthorized responses in one geographic region may indicate malicious activity or bots. Application logs can then identify the infrastructure or application component behind a 5xx error. section 11.2.1

How Automating API Delivery covers it

How deep it goes
Defines time-window failure counting, distinguishes 4xx from 5xx, and adds context, logs, thresholds, and alerts without specifying formulas.
Examples
Uses 401 failures by geographic region and application-log investigation of 5xx failures as diagnostic examples.
What it assumes
Assumes API event data and basic monitoring concepts while distinguishing service-level metrics from infrastructure metrics.
What you can do after
Diagnose API failures, distinguish user from server errors, and configure threshold-based alerts.
How it connects
Connects error rate with the RED method, request rate, duration, HTTP status codes, application logs, geographic analysis, and SLOs.

Also explained in

Compare how 6 books explain error rate →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.