# Monitor

> Monitor has three parts: Performance shows what makes a site slow, Uptime tells you when your live site stops answering, and Lighthouse grades its speed.

Source: https://docs.wpwaterfall.com/monitor

The **Monitor** tab has three parts, one under the other:

- **Performance** shows where a WordPress site spends its time. While it collects, WP Waterfall records every request that reaches PHP: the page or endpoint, how long it took, and how much of that time went to PHP, the database (MySQL), and calls to other services. It starts off.
- **Uptime** shows the uptime of the data center your site runs in, the same numbers as the [status page](https://docs.wpwaterfall.com/status-page), and tells you when your live site stops answering. It is on for every live environment.
- **Lighthouse** tests your live site with Google PageSpeed Insights and grades its speed. It follows the Uptime switch and is on for every live environment.

Performance and Uptime have their own switch on the **Monitor** card in **Tools**. The tab stays in the sidebar whatever the switches say: a part that is off says so in its own section, with a button to turn it on.

## Performance

Performance has two switches. The **Performance** switch on the **Monitor** card in **Tools** only makes the section available. It asks nothing and holds no time. Inside the section, you start and stop collecting and choose how long it runs.

### Turn Performance on

1. Open a site and pick the environment in the top bar.
2. Open **Tools** and select **Enable** beside **Performance** on the **Monitor** card.

The **Performance** section of the **Monitor** tab now shows its reports for that environment. With the switch off, the section says **Performance is off** and has an **Open Tools** button.

### Start collecting

1. Open **Monitor**.
2. At the top of the **Performance** section, choose **Collect for**: 2, 4, 12, or 24 hours, or until you stop it.
3. Select **Enable**.

While it collects, the top of the section says **Collecting until** and the time, and the one button is **Stop now**. The section updates by itself every 20 seconds while it collects, so the first bars show within a minute or two of the first visits to your site. Collecting stops by itself when the time you chose ends. Performance reports keep what was collected for 7 days.

Collecting adds a little work to each PHP request: it times every database query and every plugin and hook that runs. Without it Performance adds nothing. Short windows are best while you look for a problem. Starting and stopping change the environment on its server, so each runs as a job: the bell shows the progress and the change is recorded in the activity log.

### Stop collecting

Select **Stop now** at the top of the **Performance** section. Collecting stops at once, the data already collected stays readable, and the section stays. While nothing collects, the section opens on the last collection, so the charts and tables stay filled in. It says nothing was collected only when Performance has never collected for the environment, or when you pick a time range with no data.

### Turn Performance off

Select **Disable** beside **Performance** on the **Monitor** card in **Tools**. If a collection is running, WP Waterfall stops it first, as a job.

### What the section shows

The section has four tabs, always: **Transactions**, **WordPress**, **Database**, and **External**. A tab with nothing to show says so in one sentence. The time range sits at the right of the tabs.

**Transactions**

- **Overall transaction time**: a stacked bar chart of the time requests took, split into PHP, MySQL, and External, with the total of each above it and the **Average** request time on the right. The chart has about 30 bars across the range you picked, and the last bar is now. Bars with no requests are empty slots. Point at a bar to see its numbers. A long range scrolls sideways inside the chart. The numbers for each bar are also in a table after the chart, for screen readers.
- **Slowest transactions**: one row per page or endpoint, with **Total Duration (%)** (its share of all time, the table starts with the largest), **Total Duration**, **Max. Duration**, **Avg. Duration**, and **Rate Per Min.** Select a column heading to sort by it. Search by URL to find a row. The menu at the end of a row copies or opens the URL. On a phone the table shows the transaction, its share, and its average, and the details open from the row.

Pages that differ only by an ID count as one row: `/wp-json/wp/v2/posts/12` and `/wp-json/wp/v2/posts/40` both show as `/wp-json/wp/v2/posts/:id`. The query string is left out.

Select a transaction to open its details: where its time goes, a chart of it over time, and its slowest requests with their PHP, database, and memory numbers. A request that kept a trace has a **View trace** button, see [Trace a slow request](#trace-a-slow-request).

### Pick a time range

Use the range button at the right of the tabs. It shows the start and the end, for example "28 Sep, 2026, 6:11 PM to 29 Sep, 2026, 6:11 PM". The presets are the last 30 minutes, hour, 2 hours, 4 hours, 12 hours, 24 hours, and 7 days. Choose **Custom range** to pick a start and an end in your own time zone, then select **Apply**. The end can be any time up to now, and the start can be no more than 7 days back, because performance reports keep 7 days; an earlier start is refused.

A preset range follows now: while Performance collects, the section keeps its end at the current time. A custom range stays where you put it. Select **Refresh** to read the newest minutes at once.

### WordPress, Database, and External

The WordPress view needs WordPress on the environment. Database and External work for any PHP application.

Every table has the same columns as Transactions: **Total Duration (%)** (the row's share of the table), **Total Duration**, **Max. Duration**, **Avg. Duration**, and **Rate Per Min.**, largest total first. Select a column heading to sort by it.

- **WordPress** has **Slowest WordPress plugins** (plugin and theme folders, and **WordPress core** for the time WordPress itself used) and **Slowest WordPress hooks** (the action or filter name). A plugin row is the time of the plugin's hook callbacks, without the callbacks inside them. It includes the queries and outside calls that code made.
- **Database** has **Slowest database queries**, one row for each table and kind of statement, such as `wp_posts SELECT`, and **Slowest redis cache**, one row for each Redis command, such as `Redis GET`. WP Waterfall keeps no query text, so no visitor data shows.
- **External** has **Slowest external requests**, one row for each host and method your site called, such as `api.sendgrid.com POST`. The path and query string are left out.

These tables count every PHP request while Performance collects, not only the slow ones, so a plugin that is a little slow on every request shows. A plugin, hook, or query can be in more than one table: a plugin's time includes its queries.

### Trace a slow request

A server that records traces keeps one for the two slowest PHP requests of each minute, when they take 250 ms or more. In the transaction details, select **View trace** on such a request. The trace shows:

- The time, the transaction, the URL, the duration, and the result (the HTTP status).
- Each span, which is one piece of the request: a hook, a query, an outside call, or a Redis call. For each one it shows its start, its duration, and its share of the request. Sort by **Start**, **Duration**, or **Share**.
- Spans over 5% of the request are marked **Slow**, and over 25% **Very slow**. The bar color follows, and the word is always there.
- Select a span to see its full text, the plugin, theme, or core code it comes from, and its stack trace down to the PHP file and line.

A hook's time in a trace is its own time. It does not include the queries and calls inside it, so the spans of one request never count the same time twice.

### Performance API

The paths keep their `apm` segment, so an integration written before the rename keeps working.

- `PUT /v1/environments/{id}/tools/monitor` turns the Performance part on or off (`{"enabled": true}`). It takes no duration. Turning it off while a collection runs stops the collection first and returns `stopped_collection_job_id`.
- `PUT /v1/environments/{id}/monitor` starts or stops collecting (`{"enabled": true, "mode": "window_2h"}`). Starting while the part is off turns it on first.
- `GET /v1/environments/{id}/monitor/status` (`enabled` is true while collecting, `tool_enabled` while the Performance part is on)
- `GET /v1/environments/{id}/monitor/overview`
- `GET /v1/environments/{id}/monitor/urls?sort=avg&filter=slow&q=shop`
- `GET /v1/environments/{id}/monitor/url?name=/shop/` (each slow request can hold a `spans` list: the trace)
- `GET /v1/environments/{id}/monitor/spans?by=plugin` (`by` is `plugin`, `hook`, `query`, `external`, or `redis`, with `sort` of `total`, `max`, `avg`, or `calls`, and `limit`; `source` says whether the rows are `totals` over every request or, when a server has not sent totals, `slow_requests`)
- `GET /v1/environments/{id}/php/engine`

### What Performance does not record

Performance keeps totals per page, per plugin, per hook, per table and statement, per host, and per Redis command, and a trace for the two slowest requests of each minute. It does not keep query text, a trace for every request, or a link to share one request. There is no median or 95th percentile sample next to the slowest request. Redis time counts as PHP in the **Overall transaction time** chart; the **Slowest redis cache** table lists the Redis commands.

### When WP Waterfall support collects performance data

With your identity verified, a support agent can start collecting on one of your environments to find a slow page. It uses the same collecting job as yours, for 2, 4, 12, or 24 hours, and stops by itself when the time is up. Support cannot leave it on. Each time is written to your activity log with the agent's name.

## Uptime

The **Uptime** section shows the uptime of the data center your site runs in. These are the same numbers as that data center's row on the [status page](https://docs.wpwaterfall.com/status-page), read from the same place.

It is the uptime of the server, not of your site. One check from one place cannot say whether your site works for your visitors, so WP Waterfall does not put a number on that. For a figure about your own site, use a monitor you pick from outside our network.

WP Waterfall does still ask your live site for its home page once a minute, for one reason: to tell you when it stops answering. When it does, the account owners are notified and your webhook endpoints get `site.down`. When it answers again, they get `site.up`. You do not set anything up, because Uptime is on for every live environment.

### Where do I see it?

Open the site, pick the live environment in the top bar, and choose **Monitor**. The **Uptime** section shows:

- The name of the data center, such as "Ashburn, Virginia", and its status now, such as **Operational**.
- Its **uptime**, such as "99.98% uptime since Oct 12, 2026". What it counts is in [What does the uptime percent mean?](https://docs.wpwaterfall.com/status-page#what-does-the-uptime-percent-mean).
- A **bar for each of the last 90 days**, read the same way as on the status page. See [How do I read a row?](https://docs.wpwaterfall.com/status-page#how-do-i-read-a-row).
- A link to the [status page](https://status.wpwaterfall.com), which also lists the incidents.

If the status page has no history for the data center yet, the section says so in one sentence. A site on a dedicated server shows the row of its data center when that data center also has shared servers. On a staging or preview environment the section says that Uptime works on live, with a button to open it there.

### What does the uptime measure?

The servers in the data center, once a minute, from their heartbeat. See [How is a data center measured?](https://docs.wpwaterfall.com/status-page#how-is-a-data-center-measured). A site can be down while its data center is **Operational**, such as when a plugin breaks it. That is what the notice below is for.

### Can I turn it off?

Yes. Open **Tools** and choose **Disable** beside **Uptime** on the **Monitor** card, or choose **Enable** to turn it back on. Members who may change the environment can switch it. The switch shows on the live environment only, because the checks ask your public site.

While it is off:

- WP Waterfall does not check the environment, sends no `site.down` or `site.up`, and tells no one.
- The **Uptime** section is one sentence and a **Turn on** button.
- An outage that was open ends without a notice, so turning Uptime back on days later never announces an old outage.
- The **Lighthouse** section is not shown and no speed test runs, because it follows this switch.

### What does the check ask?

- **One address.** The primary domain of the live environment, or the temporary hostname when no domain is active. The check runs over HTTPS from the WP Waterfall control plane, not from your server.
- **Only your own names.** It follows up to three redirects, and only to another name of the same environment, such as `www`. A redirect anywhere else is not followed, and the site counts as answering.
- **Public addresses only.** It never connects to a private address.

### When does a site count as not answering?

- **Not answering** after three failed checks in a row, about three minutes.
- **Answering again** after two good checks in a row.
- A check fails on no answer within 10 seconds, a connection or certificate error, or a 5xx response. A login wall (401), a suspended page (402, from Suspend environment), a missing page (404), and a rate limit (429) count as good, because the server answered.

### What does it skip?

It does not check or alert for:

- Staging and preview environments.
- An environment that is asleep, waking, or stopped.
- An account suspended for an unpaid invoice.
- An environment whose Uptime switch is off.

### What if PHP stops answering?

WP Waterfall restarts PHP within a minute and writes that in the site's activity log. After three restarts in a day, the account owners get a notice. It names the plugin or theme the slow log points to, when it points to one.

### Who is told?

The account owners get a notification in the bell and an email, based on their settings under **Site status and health**. They get one notice when the site stops answering and one when it comes back. A long outage sends no more. See [Notifications](https://docs.wpwaterfall.com/notifications).

Webhook endpoints that picked `site.down` and `site.up` get them. Both carry an `incident_id` so you can match the pair. See [Webhooks](https://docs.wpwaterfall.com/webhooks).

### Why did I not get a notice during an outage?

All of these checks run from one place, so a fault on our side can look like every site going down at once. When many sites fail in the same minute, we treat the fault as ours: we tell our own team, and we do not email customers. If your site still fails once the checks recover, you get your notice then. If it recovers first, you hear nothing, because you were never told it was down. The status page shows what happened.

### What can it miss?

- Checks run from one place, so a problem only some visitors see may not show.
- The check always requests the home page. You cannot pick another path.
- A page that answers 200 with an error message counts as answering.

### Uptime API

- `GET /v1/environments/{id}/uptime` returns `tool_enabled`, `status_url`, and `data_center`: the row of the data center as the status page shows it, with its `status`, `uptime_percent`, `measured_days`, `measured_since`, and the 90 entries of `days`. `data_center` is `null` when the status page lists none for this environment. It needs the `sites:read` scope.
- `PUT /v1/environments/{id}/tools/uptime` with `{"enabled": true}` or `false` switches the Uptime part. It needs the `sites:write` scope and the permission to change the environment, runs no job, and answers 409 for an environment that is not live.

## Lighthouse

The **Lighthouse** section grades how fast your live page is. Google runs [Lighthouse](https://developer.chrome.com/docs/lighthouse/overview) on its own servers through PageSpeed Insights, once a day for every live site and whenever you select **Run test**. It shows four scores from 0 to 100 (performance, accessibility, best practices, and SEO), the Core Web Vitals, what to fix first, and a history chart, for a phone and for a desktop. A test adds no load to your server. The steps, the numbers, and the limits are in [Test your site's speed with Lighthouse](https://docs.wpwaterfall.com/lighthouse-speed-tests).

## Ask an assistant

An assistant connected through MCP can read performance data with `get_performance` and `get_apm_url`, read its status with `get_apm_status`, start and stop collecting with `set_apm_collection`, and switch the Performance part with `set_apm_tool`. It can read the uptime with `get_uptime` and switch the Uptime part with `set_uptime_tool`. It can test the speed of a site with `run_pagespeed_test` and read the findings with `get_pagespeed`. The tool names keep their old `apm` word. See [MCP server](https://docs.wpwaterfall.com/mcp/overview).

## Related

- [PHP performance](https://docs.wpwaterfall.com/php-performance)
- [PHP settings](https://docs.wpwaterfall.com/tools-php-settings)
- [View logs](https://docs.wpwaterfall.com/logs-viewer)
- [Troubleshooting a slow site](https://docs.wpwaterfall.com/troubleshooting-site-slow)
- [Test your site's speed with Lighthouse](https://docs.wpwaterfall.com/lighthouse-speed-tests)
- [Status page](https://docs.wpwaterfall.com/status-page)
- [Webhooks](https://docs.wpwaterfall.com/webhooks)
- [Notifications](https://docs.wpwaterfall.com/notifications)
- [Tool settings](https://docs.wpwaterfall.com/tools-settings)
- [Protection](https://docs.wpwaterfall.com/protection)
- [Performance and uptime](https://wpwaterfall.com/features/performance), the overview on wpwaterfall.com
