# GET /load/reading

First published 26 Oct 2026 (release 0.2.17) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the load group.

Get a single Load monitor reading

- Who may call it: administrator
- Token scope, any of: settings, read, all
- Answers: 200 OK

Returns the current server load, counts of running processes and processes waiting for disk I/O, memory usage, the processes waiting for disk I/O, and the processes using the most memory. For each PHP-FPM pool, it reports the number of busy children against pm.max_children and the number of queued requests. It also reports Apache worker activity, running MariaDB threads, and MariaDB queries that have been running for more than one second. Use a Load monitor session to get rates.

The response includes the hostname, CPU core count, Apache's MPM and limits, and the disks and their backing storage. For the last 14 days, it reports how many times each PHP-FPM pool reached pm.max_children and which Apache master processes reached MaxRequestWorkers, with the most recent occurrence for each pool and master process.

## As a command

- [urbestack-load-reading](https://urbestack.com/docs/commands/urbestack-load-reading.md): Takes a single reading of the server for the Load monitor.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/load/reading" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "facts": {
    "apache": {
      "max_request_workers": 1,
      "mpm": "text",
      "server_limit": 1,
      "thread_limit": 1,
      "threads_per_child": 1,
      "version": "0.0.1"
    },
    "cores": 1,
    "disks": {},
    "hostname": "server.example.com",
    "os": "text",
    "pools_total": 1,
    "uptime_s": 1
  },
  "reached": {
    "apache": {
      "last": "text",
      "masters": 1
    },
    "days": 1,
    "pools": [
      {
        "last": "text",
        "max": 1,
        "name": "alice",
        "php": "text",
        "times": 1
      }
    ]
  },
  "reading": {
    "apache": {
      "answered": true,
      "busy": 1,
      "closing": 1,
      "connections": 1,
      "full": true,
      "idle": 1,
      "keepalive": 1,
      "ms": 1,
      "processes": 1,
      "reason": "text",
      "scoreboard": "text",
      "stopping": 1,
      "writing": 1
    },
    "at": "text",
    "backlog_http": {},
    "blocked": 1,
    "cores": 1,
    "cpu": {
      "idle": 1,
      "iowait": 1,
      "steal": 1,
      "system": 1,
      "user": 1
    },
    "disks": {},
    "dstate": [
      {
        "name": "alice",
        "pid": 1,
        "user": "alice",
        "wchan": "text"
      }
    ],
    "dt": 1,
    "error": "Domain 'example.com' already exists",
    "kernel_errors": [
      "text"
    ],
    "load": [
      1
    ],
    "mariadb": {
      "answered": true,
      "installed": true,
      "long": [
        {
          "database": "alice_shop",
          "query": "text",
          "seconds": 1,
          "state": "text",
          "user": "alice"
        }
      ],
      "reason": "text",
      "stuck": true,
      "threads_connected": 1,
      "threads_running": 1,
      "version": "0.0.1"
    },
    "memory_kb": {
      "available": 1,
      "dirty": 1,
      "swap_total": 1,
      "swap_used": 1,
      "total": 1,
      "writeback": 1
    },
    "n": 1,
    "pools": [
      {
        "busy": 1,
        "hits": 1,
        "idle": 1,
        "kind": "domain",
        "max": 1,
        "name": "alice",
        "peak": 1,
        "php": "text",
        "running": 1,
        "running_peak": 1,
        "set_in": {
          "domain": "example.com",
          "file": "urbestack-panel-20260909T101500Z.json.enc",
          "key": "panel.port"
        },
        "user": "alice",
        "waiting": 1,
        "waiting_peak": 1
      }
    ],
    "processes": 1,
    "raid": [
      {
        "action": "text",
        "device": "text",
        "finish": "text",
        "progress": 100,
        "speed_kb_s": 1
      }
    ],
    "running": 1,
    "swap_pages_s": {
      "in": 1,
      "out": 1
    },
    "t": 1,
    "top_cpu": [
      {
        "cpu_pct": 1,
        "name": "alice",
        "pid": 1,
        "rss_kb": 1,
        "user": "alice"
      }
    ],
    "top_io": [
      {
        "name": "alice",
        "pid": 1,
        "read_b_s": 1,
        "user": "alice",
        "write_b_s": 1
      }
    ],
    "top_memory": [
      {
        "name": "alice",
        "pid": 1,
        "rss_kb": 1,
        "user": "alice"
      }
    ],
    "waiting_http": {}
  }
}
```

## Errors

- 401: Authentication required
