Skip to main content

mr admin stats

Show administrative statistics about the running server and its data. By default the command fetches three sections — server health (uptime, memory, DB connections), data counts (entity totals), and expensive stats that require full-table scans (hash collisions, dangling references). Together they give a one-page picture of instance size and health.

Use --server-only to fetch just the server health block, or --data-only to fetch just the data counts — useful for lightweight monitoring that skips the expensive scans. Neither flag is required; when both are unset the command fetches all three sections.

Usage

mr admin stats

Examples

Full admin stats (human-readable, three sections)

mr admin

Server health only

mr admin --server-only --json

Data counts only

mr admin --data-only

Flags

FlagTypeDefaultDescription
--server-onlyboolfalseShow server stats only
--data-onlyboolfalseShow data stats only

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Combined stats object {serverStats, dataStats, expensiveStats} in JSON mode; three sectioned tables in human mode

Exit Codes

0 on success; 1 on any error

See Also