> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# squarecloud db metrics

> Displays the last 24 hours of metrics for your database.

Prints a time series of resource usage for the database, covering the last 24 hours. The database ID is optional: the CLI resolves it from the argument, then falls back to an interactive picker.

```bash theme={null}
squarecloud db metrics
# Uses an interactive picker to choose the database.
```

```bash theme={null}
squarecloud db metrics <dbID>
# Shows the last 24h of metrics for a specific database.
```

```bash theme={null}
squarecloud db metrics <dbID> --json
# Prints the raw metric points as JSON.
```

Use `squarecloud db metrics --help` for more information about this command.
