Skip to content

Health


fleet health

Run health checks for one or all registered apps. Checks cover systemd unit state, container running status, and an optional HTTP endpoint.

Usage

Terminal window
fleet health [app] [--json]

Arguments

ArgumentRequiredDescription
appNoApp name. Omit to check all apps.

Flags

FlagDescription
--jsonOutput raw JSON

Examples

Check all apps:

Terminal window
$ fleet health
Health Check
APP SYSTEMD CONTAINERS HTTP OVERALL
myapp active 2/2 200 healthy
api active 1/1 200 healthy
worker failed 0/1 - down

Check a single app:

Terminal window
$ fleet health myapp
Health: myapp
Systemd: active
Container: myapp-web-1 (healthy)
Container: myapp-db-1 (none)
HTTP: 200
Overall: healthy

JSON output:

Terminal window
$ fleet health myapp --json
{
"app": "myapp",
"systemd": { "ok": true, "state": "active" },
"containers": [
{ "name": "myapp-web-1", "running": true, "health": "healthy" }
],
"http": { "ok": true, "status": 200 },
"overall": "healthy"
}

HTTP health checks

An HTTP check is only performed if healthPath is set on the app’s registry entry. To add it, use fleet_register from MCP or edit data/registry.json directly, setting healthPath to a path like /healthz.

  • MCP tool: fleet_health

fleet logs

Stream or print container logs for a registered app.

Usage

Terminal window
fleet logs <app> [-f] [-n <lines>]

Arguments

ArgumentRequiredDescription
appYesApp name

Flags

FlagDescription
-f, --followFollow log output (stream in real time)
-n <lines>Number of log lines to show (default: 100)

Examples

Terminal window
$ fleet logs myapp
[last 100 lines of container logs]
Terminal window
$ fleet logs myapp -f
[streaming logs...]
Terminal window
$ fleet logs myapp -n 50
[last 50 lines]
  • MCP tool: fleet_logs