# nevia metrics

> Show what your computers and databases used against what was reserved for them

> Nevia is in early access for selected teams. The CLI installs with `curl -fsSL https://get.nevia.cloud | sh`, and the MCP server is at https://api.nevia.cloud/mcp. A person signs in once in the browser.
> Setup, sign-in and requesting access: [SKILL.md](https://nevia.cloud/SKILL.md). When Nevia fits and when it doesn't: [why.md](https://nevia.cloud/why.md).

> For the complete documentation index, see [llms.txt](https://nevia.cloud/llms.txt). This page's HTML version: https://nevia.cloud/docs/reference/cli/metrics

`nevia metrics [FLAGS] [RESOURCE]`

One row per resource and metric: cpu (processor time, in vCPUs), memory (memory, in bytes), disk (disk, in bytes, per volume) and network (network traffic, in bytes per second, per direction), and for a database connections (client connections to Postgres, active, idle and idle in a transaction together, against `max_connections` as allocated), size (the size of the database's data, in bytes, over all its databases), cache\_hit\_ratio (the share of block reads Postgres served from its buffer cache, from 0 to 1, per 10-second sample) and query\_time (how long statements took to run, in seconds, as the median and 95th percentile of each 10-second sample). Used is what the workload used: now, the 95th percentile and the most. Allocated is what the platform reserved at the end of the window, which is what you are billed for. A value is - when nothing was reported, or when the resource was asleep; disk stays allocated while it sleeps. It reads coming soon where this deployment does not report that value yet. The scope is the selected workspace, or every workspace you can see when none is selected. The window defaults to the 24 hours before --until and may span at most 92 days. --series prints one row per bucket instead, minutes up to 6 hours, hours up to 14 days and days beyond. Under --json, it prints the API's answer unchanged.

### Arguments

* `[RESOURCE]` - Computer or database ID or name (the same as one --resource)

### Options

* `--resource <RESOURCE>` - Computer or database ID or name (repeatable)
* `--project <PROJECT>` - Project ID or name (repeatable): the computers and databases in it, deleted ones included
* `--since <WHEN>` - Window start: an RFC 3339 time, a date, or a time ago such as 10m, 2h or 1d
* `--until <WHEN>` - Window end, exclusive, in the same forms as --since (default: now)
* `--series` - One row per bucket instead of the summary, for at most 20 resources
* `-h, --help` - Print help
