Skip to main content

Get container stats

GET/api/docker/stats

Returns a one-shot CPU, memory, network and disk reading for each running container. Values are the strings Docker prints, such as 0.00% and 10.96MiB / 7.755GiB.

Authorizations

Authorizationstringheader

The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.

Query parameters

serverstring

The name of a remote server from List servers. homebutler runs the command on it over SSH and returns its answer. Leave it out, name the local server, or name a server that is not in the config, to read this machine.

Example: nas

Response

200 · application/json

The readings, or available: false when Docker is not reachable. The example is shortened.

availablebooleanrequired

false when Docker did not answer.

messagestring

Why Docker is unavailable. Present only when available is false.

statsobject[]required

One reading per running container. Empty when Docker is unavailable.