# Application Performance Monitoring (APM)

> Tools that watch an app from the inside and show where requests get slow.

**Field:** Infrastructure  
**Category:** Monitoring & Observability  
**Also known as:** APM, APM Tool, APM Agent

## Think of it like

Think of it like a doctor's scan. It shows which part inside is hurting.

## Definition

Application performance monitoring watches an app from the inside while it runs. A small agent added to the app times each request, and each step within it, such as a database query. It shows which requests are slow and where the time goes. It also counts errors and links them to the code that caused them. Most of these tools today are built on traces, metrics and logs.

## Example

Jack's checkout page takes 4 seconds. His APM tool shows that 3.5 of those seconds go on one database query, so he knows what to fix.

## Why it matters

Knowing a page is slow is not enough. APM shows which step is slow, which turns a guess into a fix.

## Common mistake

Turning on every detail for every request. The agent then slows the app it is meant to watch, and the bill grows.

## Three principles

- **An inside view.** An agent runs within the app.
- **Where time goes.** Each step of a request is timed.
- **Errors with context.** Linked to the code that failed.

## Related terms

- [Monitoring](https://learn.benibix.com/term/infrastructure/monitoring)
- [Distributed Tracing](https://learn.benibix.com/term/infrastructure/distributed-tracing)
- [Instrumentation](https://learn.benibix.com/term/infrastructure/instrumentation)
- [Real User Monitoring (RUM)](https://learn.benibix.com/term/infrastructure/real-user-monitoring)
- [OpenTelemetry (OTel)](https://learn.benibix.com/term/infrastructure/opentelemetry)

![Four ways to watch an app, around one app box. Top left, a robot script visits it on a timer. Top right, real users' phones and laptops send timings back. Bottom left, an agent inside the app times each step. Bottom right, a nightly job sends a ping to a heartbeat monitor.](https://learn.benibix.com/diagrams/inf4-monitoring-views.svg)

---

Source: https://learn.benibix.com/term/infrastructure/application-performance-monitoring
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
