---
title: "analytics metrics"
description: "Show project metrics"
canonical: "https://pgbeam.com/docs/cli/analytics/metrics"
last-updated: "2026-10-29T19:01:20.000Z"
---

# analytics metrics

> Show project metrics

URL: https://pgbeam.com/docs/cli/analytics/metrics

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Display real-time performance metrics for the linked project, including query counts, cache hits, active connections, and latency percentiles. Results are broken down by region. Use `--limit` to control how many snapshots to return and `--region` to filter by a specific region.

## Usage

```bash
pgbeam analytics metrics [flags]
```

## Options

| Option             | Description                                          | Required | Default |
| ------------------ | ---------------------------------------------------- | -------- | ------- |
| `--limit <value>`  | Maximum number of metric snapshots to return         | No       | `10`    |
| `--region <value>` | Filter results to a specific region (e.g. us-east-1) | No       | -       |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Show the latest 10 metric snapshots
pgbeam analytics metrics

# Show the latest 20 snapshots
pgbeam analytics metrics --limit 20

# Filter by region
pgbeam analytics metrics --region us-east-1

# Get metrics as JSON
pgbeam analytics metrics --json
```

## Output

Displays a table with columns: Region, Queries, Cache Hits, Connections, Avg (ms), and P99 (ms). With `--json`, returns the full metrics snapshot array.