---
title: "analytics insights"
description: "Show project query insights"
canonical: "https://pgbeam.com/docs/cli/analytics/insights"
last-updated: "2026-09-14T19:37:21.000Z"
---

# analytics insights

> Show project query insights

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

Display query performance insights for the linked project, including cache hit rate, average and P99 latency, and the top queries by call count. Use `--range` to adjust the time window.

## Usage

## Options

Option

Description

Required

Default

`--range <value>`

Time window for insights: 1h, 6h, 24h, or 7d

No

`24h`

All global options (`--token`, `--profile`,
`--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
also available on this command.

## Examples

## Output

Displays cache hit rate, average latency, and P99 latency, followed by a table of top queries with columns: Query (truncated), Count, Avg (ms), and Cache Hits. With `--json`, returns the full insights response.