# Metrics

These instructions apply to the current Admin Console.

Metrics includes multi-panel dashboards at the tenant, individual agent, Object Type, and record levels.

## Where to Find It

- In the left navigation, under **Operate**, select **Metrics** for tenant-wide dashboards.

- Open an agent and select the **Metrics** tab for detailed per-agent dashboards. You can also select an agent's name in the **Agents** table on the Metrics page.

- Open an Object Type and select the **Metrics** tab for the records and attachments of that type.

- Open a native-object record and select the **Object Metrics** tab for that record.

## Dashboard Coverage

<a id="tenant-metrics-monitoring-metrics"></a>

<a id="tenant-metrics-monitoring--metrics"></a>

<a id="tenant-metrics-operate--metrics"></a>

### Tenant Metrics (Operate → Metrics)

The tenant metrics view includes tabs for:

- **All Agents**

- **Event**

- **HTTP**

- **Cron**

- **Internal API**

- **AI Gateway**

- **RLA** (Record Level Attachments)

- **Native Object**

**All Agents** opens by default. The RLA and Native Object tabs report on your solution data, including records, attachments, and change history. The other tabs report runtime and system metrics.

#### All Agents, Event, HTTP, and Cron Tabs

These tabs show summary cards and an **Agents** table. The Event, HTTP, and Cron tabs list only agents of that type.

| **Card**        | **What It Shows**                                                                                           |
|-----------------|-------------------------------------------------------------------------------------------------------------|
| Deployed Agents | The number of deployed agents and how many are running.                                                 |
| Queued Events   | The average number of queued events in the latest rollup bucket (for example, **Latest 1-minute average**). |
| HTTP Requests   | The total HTTP requests in the latest rollup bucket.                                                        |
| Scheduled Runs  | The number of scheduled cron runs in the selected range.                                                    |
| Instance Exits  | The number of agent instance exits in the selected range.                                                   |

The summary cards show tenant-wide totals on the **All Agents**, **Event**, **HTTP**, and **Cron** tabs. Selecting an agent type filters the table, not the summary cards.

The **Agents** table shows **Agent**, **Type**, **Status**, **Scale**, **Activity**, **Terminated**, and **Trend** for each agent.

- Select **Show preview** at the start of a row to see the agent's instance summary: **Instance**, **Status**, **Restarts**, **Uptime**, and the **Last**, **Avg**, and **Max** values for **CPU** and **Memory**. Use the copy button next to an instance to copy its ID.

- Select an agent's name to open its **Metrics** tab with the same time range.

<a id="agent-metrics-agent-greater-than-metrics"></a>

### Agent Metrics (Agent > Metrics)

- **Event agents** include Event Metrics and System Metrics.

- **HTTP agents** include HTTP Metrics and System Metrics.

- **Cron agents** include Cron Metrics and System Metrics.

Cards at the top of the tab summarize the agent's configuration and the dashboard state:

| **Card** | **What It Shows**                                                                                                                                                                                                       |
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Type     | What the agent runs and what triggers it, for example **Flow topic**, **Flow HTTP**, **Flow cron**, or **Site HTTP**.                                                                                                   |
| Replicas | The minimum and maximum number of instances the agent can run, for example **1/1**. This is the configured range from **Compute & scaling** on the agent's **Definition** tab, not the number of instances running now. |
| Scaling  | The scaling rule and its target, for example **cpu 80%** (Compute Threshold) or **lag 100 msgs** (Event Lag).                                                                                                           |
| Refresh  | Whether the dashboard updates on its own: **Manual** when auto-refresh is off, or **Paused by zoom** while you are zoomed in.                                                                                           |

An agent's **Metrics** tab reports runtime activity, while its **Object Metrics** tab reports the agent configuration record's state and audit history. To see AI provider usage, use the **AI Gateway** tab on **Operate \> Metrics**.

<a id="time-range-rollup-and-auto-refresh"></a>

## Time Range, Rollup, Aggregation, and Auto-Refresh

- The runtime tabs default to **Last 24 hours**, **1m** rollup, and **Auto** aggregation. **Aggregation** options are **Auto**, **avg**, **min**, **max**, and **sum**.

- Rollup options are constrained by the selected range to control point density.

- Rollup defaults increase as ranges widen (for example: 24 hours → 1m, 3 days → 5m, 7 days → 15m, 30 days → 6h).

- The AI Gateway, RLA, and Native Object tabs do not show the **Aggregation** control. Each panel defines its own calculation, shown in its title, card labels, and table columns. For example, count panels use counts, size panels total bytes, and summary cards identify averages and maximums.

- The runtime tabs offer presets from **Last 15 minutes** to **Last 30 days**. The AI Gateway tab adds **Last 3 months**. The solution data tabs add **Last 3 months**, **Last 6 months**, **Last 12 months**, and **All time**. Switching to a tab that does not support the selected range resets it to **Last 24 hours**.

- Select **Custom range…** to set a **From** and **To** date and time, then select **Apply range**.

- **All time** starts at the earliest solution data captured for your tenant or Object Type. It does not mean that data exists for the tenant's entire lifetime.

- The selected tab, time range, rollup, and aggregation are stored in the page URL, so you can bookmark or share a link to the same view (for example, /metrics?range=7d&type=cron&rollup=30+MINUTE&agg=max). When you open **Metrics** from the navigation, the page starts again on **All Agents**, **Last 24 hours**.

- Auto-refresh is off by default. Turn on **Auto-refresh** to refresh the dashboard every 60 seconds; the status next to the controls shows **(every 60s)**. Select **Refresh metrics** to refresh once. Ranges longer than seven days, **All time**, and custom ranges use manual refresh and disable **Auto-refresh**.

## Linked Charts and Presentation Behavior

- Charts in the same dashboard are linked for synchronized hover and zoom windows.

- To zoom, drag across a time-series chart. Agent dashboards also offer a **Zoom in** button. A zoom previews a time window: a banner shows the zoomed dates, and auto-refresh pauses. On agent dashboards, the **Refresh** card shows **Paused by zoom**.

- **Apply zoomed range** updates all charts, summaries, and tables to the zoomed range.

- **Reset zoom** returns the linked charts to the selected range. Agent dashboards also offer **Zoom out** to widen the zoom window.

- Most time-series charts have a chart style picker: **Line**, **Bar**, or **Stacked**.

- Select a series name in a chart legend to show or hide that series. Select the **About** (ⓘ) button on a panel for a description of the metric.

- Select **Expand dashboard** for a full-screen view that hides navigation and header chrome. Select **Exit fullscreen dashboard** or press **Escape** to return.

- Use **Expand** on a chart or table to view that panel in full screen. Select **Close** or press **Escape** to exit.

- Solution data line charts have a **Period \| Cumulative** toggle. **Period** shows the value within each rollup bucket; **Cumulative** shows a running total across the selected range.

- The dashboard layout adapts to the screen width, from multiple columns on wide screens to a single column on narrow screens.

## Event Agent Dashboard Metrics

Event agents include Pulsar-driven panels:

- **Backlog Count**

- **Storage Backlog** (summary: **Storage Size (KiB)**)

- **Messages Received** (summary: **Received (msg/sec)**)

- **Data Received** (summary: **Data Received (KiB/sec)**)

These metrics help correlate backlog growth with message volume and payload throughput.

<a id="http-and-internal-api-dashboards"></a>

## HTTP Agent Dashboard Metrics

HTTP agents include these panels:

| **Panel**                                      | **What It Shows**                                             |
|------------------------------------------------|---------------------------------------------------------------|
| Endpoint Counts                                | Request volume over time for each endpoint.                   |
| Endpoint Counts by Method and Path             | Method, Path, Count, and % Total for each endpoint.           |
| Slowest Endpoints                              | Latency over time for the slowest endpoints, in milliseconds. |
| Endpoint Latency Statistics by Method and Path | Max, Avg, and P95 latency (ms) for each endpoint.             |
| Status Codes                                   | Responses over time by HTTP status code.                      |
| Endpoint Counts by Status Code and Path        | Status, Path, Count, and % Total.                             |

## Cron Agent Dashboard Metrics

Cron agents include a **Scheduled Runs** summary and chart that show how many scheduled runs the agent made over the selected range.

## System Metrics (All Agent Types)

System metrics show the CPU, memory, network, and restart activity of the instances that run the agent. They appear on every agent's **Metrics** tab, whatever the agent type, and help you spot resource problems such as instances running out of memory.

System metrics include:

- **Terminated Instances**, broken down by stop reason (for example, **OOMKilled** and **Error**)

- **Instance Count** over time (**Ready** instances)

- **Network Totals** (KiB) and **Network I/O** (KiB/s), by **receive** and **transmit** direction

- **CPU Usage (%)** – **Last**, **Average**, and **Maximum** CPU use as a percentage of the requested resources. This can exceed 100%.

- **CPU Usage** – CPU use over time, in mCore

- **Memory Usage (%)** – **Last**, **Average**, and **Maximum** memory use as a percentage of the requested resources. This can exceed 100%.

- **Memory Usage** – memory use over time, in GiB, with **Usage**, **RSS**, and **Working set** series

- **Instance Exits**, a table of **Time**, **Instance**, **Reason**, **Exit Code**, and **Restarts** for each exit

- An **Instance summary** with **CPU Usage** and **Memory Usage** charts for each instance. Use the copy button to copy an instance ID.

The **Instance Count** chart marks terminations with pins by stop reason, for example **Terminated (OOMKilled)** and **Terminated (Error)**. Hover over the chart to see the number of ready instances and terminations at that time. For the details of each exit – instance, reason, exit code, and restarts – use the **Instance Exits** table.

CPU and memory usage charts include requested-resource and limit reference lines when those values are available.

## Internal API Dashboard

The Internal API tab reports request volume, latency, and rate limiting for internal API calls, by service, user, method, and path.

| **Panel**                                              | **What It Shows**                                                   |
|--------------------------------------------------------|---------------------------------------------------------------------|
| Top 10 Endpoint Counts by Service and User ID          | Request volume trend for the busiest service and user combinations. |
| Endpoint Counts by Service, User ID, Method, and Path  | Request counts and % of total for each endpoint.                    |
| Top 10 Slowest Endpoints by Service and User ID        | Latency trend for the slowest service and user combinations.        |
| Endpoint Latency Statistics                            | Max, average, and P95 latency for each endpoint.                    |
| Top 10 Endpoint Counts by Status, Service, and User ID | Request trend by status code.                                       |
| Endpoint Counts by Status Code                         | Request counts by status code.                                      |
| Top 10 Rate Limit Delays                               | Trend of the largest rate-limit delays.                             |
| Rate Limit Delay Statistics                            | Summary statistics for rate-limit delays.                           |
| Rate Limit Error Counts                                | Trend of rate-limit errors.                                         |
| API Requests Rate Limited                              | Requests that were rate limited.                                    |

## Interpreting Rollups and Gaps

- Larger rollups smooth short spikes because each point represents an aggregated bucket.

- A chart can look lower than max summary values when a high spike is averaged within a bucket.

- Flat or inactive series can show sparse points or gaps when no new source metrics are emitted.

## AI Gateway Dashboard

The AI Gateway tab provides visibility into LLM provider usage, cost, latency, and reliability across all AI routes in the tenant. It adds a **Last 3 months** preset and does not show the **Aggregation** control. Event, HTTP, Cron, and Internal API presets extend to **Last 30 days**; RLA and Native Object also offer longer ranges and **All time**. Switching tabs resets an unsupported preset to **Last 24 hours**.

### Summary Cards

The summary cards show metrics for the selected time period and compare them with the prior equivalent window (for example, **+36.2 % vs previous period**). When there is no data for the prior window, the card shows **No previous period baseline**.

- **AI Calls** — Total number of provider API calls made. Each call corresponds to a single request sent to an LLM provider endpoint.

- **Tokens Processed** — Combined count of input and output tokens consumed across all calls.

- **Estimated Cost** — Total spend for the period. Select **Cost estimate details** (ⓘ) on the card for a breakdown of cost by token category: Input (uncached), Cache Read, Cache Write, Text Output, and Reasoning. The details also show when model rates were last synced and what percentage of calls have pricing data.

  - A **warning icon** replaces the info icon when the cost estimate may be unreliable. This occurs in two cases:

  - **Stale pricing data** — model rates have not been synced in the last 24 hours.

  - **Low coverage** — fewer than 90% of calls in the selected time range have pricing data available. This can indicate a model whose rates have not been configured.

- **Avg Latency** — Mean end-to-end response time across all calls.

- **Failure rate** — Percentage of provider calls that failed, including errors, content-filtered responses, and structured answers cut off at the token limit.

- **Failed requests** — Number of requests whose last attempt failed.

- **Fallback rate** — Percentage of requests that used more than one trace, including requests that ultimately succeeded.

- **Cache Hit Rate** — Percentage of calls served from the provider's prompt cache.

Use the bell on **Failure rate**, **Failed requests**, or **Fallback rate** to [create or edit an alert](https://docs.contextual.io/operate/alerts/create-alerts-from-charts.md) for that metric across the AI Gateway service.

### Time Series Charts

Charts below the summary cards share synchronized hover and zoom interactions. **Request Volume & Failures**, **Token Usage**, and **Cost Breakdown** have a **Period \| Cumulative** toggle.

- **Request Volume & Failures** — **Calls** shown as bars with a **Failures** overlay. Use this to spot spikes in traffic or error bursts.

- **Token Usage** — Stacked chart broken down by token type: **Input**, **Cache (Read)**, **Cache (Write)**, **Output**, and **Reasoning**.

- **Latency Trend** — Average, P50 (median), and P95 latency over time. A widening gap between P50 and P95 can indicate that some calls are much slower than typical calls.

- **Cost Breakdown** — Stacked cost in USD by token category (Input, Cache Read, Cache Write, Output, Reasoning).

- **Finish Reasons** — Donut chart showing how requests terminated, for example `stop`, `tool-calls`, `length`, `content-filter`, or `error`. The center displays total request count.

- **Failure types** — Breakdown of failed calls by cause, such as a timeout or a truncated structured answer.

<a id="route-health-chart"></a>

### Route Health

The Route Health table shows how requests resolved for each AI route in the selected time period:

| **Column**                     | **Description**                                                                                                                                                                                        |
|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Route                          | The AI route name. Select it to open the **Route attempts** dialog for that route.                                                                                                                     |
| Succeeded / Recovered / Failed | **Succeeded** — the last attempt succeeded without a fallback. **Recovered** — the last attempt succeeded after retrying the same model or falling back to another model. **Failed** — the last attempt failed, including after any fallbacks. A failure includes an error, a content-filtered answer, or a structured answer cut off at the token limit. |
| Requests                       | Number of requests sent through the route.                                                                                                                                                             |
| Primary Model                  | The route's primary model, for example openai/gpt-5.2.                                                                                                                                                 |
| Fallback Models                | The fallback models configured for the route, if any.                                                                                                                                                  |
| Failed Attempt Cost            | Cost incurred on attempts that did not produce a successful response.                                                                                                                                  |

<a id="fallback-paths-dialog"></a>

#### Route Attempts Dialog

The **Route attempts** dialog shows how requests on a route moved through its models.

##### Model Attempts and Errors

The table has one row per provider and model:

| **Column**          | **Description**                                  |
|---------------------|--------------------------------------------------|
| Provider            | LLM provider name                                |
| Model               | Model identifier                                 |
| Attempts            | Total attempts made to this model                |
| Failed              | Number of failed attempts                        |
| Failure Rate        | Percentage of attempts to this model that failed |
| Failed Attempt Cost | Cost incurred on failed attempts                 |
| Top Errors          | The most common error messages for this model    |

Below the table, each request is listed with its request ID, number of attempts, number of failed attempts, and cost (for example, **3 attempts · 1 failed · \$0.01142**). Select a request to see each attempt: **Time**, **Provider**, **Model**, **Status**, **Error**, **Duration**, and **Cost**.

<a id="breakdown-by-provider--model"></a>

### Breakdown Table

The breakdown table defaults to **Provider / model**. Use the tabs above the table to group usage by **Route**, **Agent**, **Node**, **Finish reason**, or **Failure type**. **Not failed** is the category for successful calls when grouped by **Failure type**. The columns change for the selected grouping.

For **Provider / model**, the sortable table shows these columns: **Provider**, **Model**, **Calls**, **Input Tokens**, **Output Tokens**, **Cache Read**, **Cache Write**, **Cache Hit Rate**, **Avg Latency**, **P95 Latency**, **Failures**, **Failure rate**, and **Estimated Cost**. **Calls** counts provider attempts. A retried request can contribute multiple calls.

Select a linked count in **Failures** to open [AI Failure Details](#ai-failure-details) for that row, including when grouped by provider/model or failure type.

<a id="error-detail-dialog"></a>

### AI Failure Details

#### Failure Breakdown Table

**Model Attempts and Errors** shows attempts, failures, failure rate, failed attempt cost, and top errors per provider and model for the selected row and time range.

#### Recent Fallback Chains

Expand a request to inspect each attempt’s provider, model, status, error, duration, and cost.

<a id="tool-calls"></a>

### Tool Calls Table

A separate table at the bottom of the page shows metrics for tool invocations made during agent execution. Columns: **Tool**, **Calls**, **Avg Latency**, **P95 Latency**, **Errors**, and **Error Rate**.

## Solution Data Dashboards

Both tabs use one shared set of **Time range**, **Rollup**, **Auto-refresh**, and full-screen controls at the top of the Metrics page. The selected time range and rollup apply to every panel on the active tab. The **Aggregation** control is not shown because each panel defines its own calculation.

### Record Level Attachments (RLA)

The RLA tab covers attachments across the tenant. It combines composition charts, trends, summary cards, distributions, and tables so you can compare attachment volume and storage use.

| **Panel**                                                                     | **What It Shows**                                                                                                     |
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| Attachment Count by Content Type / Attachment Count by Content Type Over Time | The number of attachments for each content type and how those counts change over time.                                |
| Attachment Size by Content Type / Attachment Size by Content Type Over Time   | Total attachment size for each content type and how that storage use changes over time.                               |
| Attachment Count by Object Type / Attachment Count by Object Type Over Time   | Attachment counts by Object Type and their trends.                                                                    |
| Attachment Size by Object Type / Attachment Size by Object Type Over Time     | Attachment storage use by Object Type and its trends.                                                                 |
| Attachment Count / Attachment Counts Over Time                                | Total attachments, average attachments per instance, maximum attachments per instance, and the count trend.           |
| Attachment Size / Attachment Size Over Time                                   | Total attachment size, average size per instance, maximum size per instance, and the size trend.                      |
| Attachment Count Distribution (Per Instance)                                  | How attachment counts are distributed across instances.                                                               |
| Attachment Size Distribution                                                  | How individual attachment sizes are distributed.                                                                      |
| Attachment Statistics                                                         | Content Type, File Count, % of Files, Total Size, % of Size, Avg Size, Max Size, and Min Size.                        |
| Most Attachments by Count                                                     | Object Type, Instance ID, File Count, Avg Size, Max Size, and Total Size for the instances with the most attachments. |
| Largest Attachments by Size                                                   | Object Type, Instance ID, Filename, Size, and Last Updated for the largest attachments.                               |

In **Most Attachments by Count** and **Largest Attachments by Size**, select an Instance ID to open the record's **Attachments** tab.

### Native Object

The Native Object tab covers all Native Object Types in the tenant. It combines record size and count metrics with operation and change-history metrics.

| **Panel**                                                       | **What It Shows**                                                                                                           |
|-----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| Counts by Type / Counts by Type Over Time                       | Stored record counts by Object Type and their trends.                                                                       |
| Size by Type / Size by Type Over Time                           | Storage use by Object Type and its trends.                                                                                  |
| Operations / Operations Over Time                               | The distribution and trend of record operations.                                                                            |
| Object Changes by History / Object Changes by History Over Time | Change-history activity by Object Type and its trend.                                                                       |
| Object Type Stats                                               | Object Type, Record Count, % of Records, Total Bytes, % of Bytes, Avg Bytes, Max Bytes, and Min Bytes.                      |
| Most Changed Objects                                            | Object Type, Object ID, Operation, Change Count, First Change, Last Change, and Active Days for frequently changed records. |
| Largest Objects by Size                                         | Object Type, Object ID, Size, and Last Updated for the largest records.                                                     |

Select an Object Type in any table to open that Object Type's **Metrics** tab with the current time range. In **Most Changed Objects** and **Largest Objects by Size**, select an Object ID to open that record's **Object Metrics** tab.

<a id="object-type-metrics-object-type-greater-than-metrics"></a>

## Object Type Metrics (Object Type > Metrics)

<a id="where-to-find-it-1"></a>

### Open an Object Type Dashboard

Open an Object Type and select the **Metrics** tab. The tab has two views, **Native Object** (selected by default) and **RLA**, which use the same panels as the Native Object and RLA tabs on the Metrics page. The data is limited to records and attachments of that Object Type.

### Availability

The **Metrics** tab appears on the Object Type details page when you have access to Metrics. This includes Flow, Agent, and Connection types.

### Controls

The Object Type dashboard has its own **Time range**, **Rollup**, **Auto-refresh**, and full-screen controls. These controls are independent of the controls on **Operate \> Metrics**.

- The default time range is **Last 24 hours**. The rollup uses the recommended default for the selected range.

- The dashboard supports the solution data ranges through **All time**.

- Auto-refresh is off by default. Ranges longer than seven days, **All time**, and custom ranges disable it. Zooming pauses it, and selecting **Apply zoomed range** changes the dashboard to that range.

### Panels

See **Native Object** and **Record Level Attachments (RLA)** above for the panels in each view.

<a id="record-metrics-record-greater-than-object-metrics"></a>

## Record Metrics (Record > Object Metrics)

Open a native-object record and select the **Object Metrics** tab. Record links in the Native Object metrics tables also open this tab. A direct link to a record can select it with `?tab=metrics`.

### Activity Panels

The tab has two views, **Native Object** (selected by default) and **RLA**, with the same panels and controls as the Object Type dashboard. The data is limited to that record. It defaults to **Last 24 hours** and supports the solution data ranges through **All time**. See the Object Type dashboard’s [controls](#controls) for the available settings.

## Interpreting Solution Data

- **Some Native Object panels can include multiple record revisions.** An updated record may contribute more than once within the selected range. This can affect the count and size panels and **Object Type Stats**. These values are not necessarily distinct-record totals. **Largest Objects by Size** selects the latest available version of each record within the range.

- **Author labels use available tenant user data.** A matching user ID displays as an email. Long unresolved IDs are shortened, and a missing ID displays as **Unknown**.

- **RLA panels handle versions according to the panel type.** Summary cards, pie charts, and tables select the latest available version of each attachment within the selected range and exclude attachments marked as soft-deleted. Time-series and distribution charts use matching versions from across the range, so an attachment can contribute more than once after updates.

- **Tables summarize a limited set of top rows.** Statistics and "most" tables typically return around 20 top rows. A total in one of these tables summarizes the returned rows, not every matching record in the tenant.

- **Hourly activity uses recent data.** The **Activity by Hour of Day** panel uses your local timezone and for longer ranges up to the latest six months of data.

- **Trends need a complete previous period.** Summary cards and tables show period-over-period changes only when data covers the full previous window. Otherwise, they show current values without a trend.

- **History starts when the capture starts.** Older data appears only after historical data has been loaded for your tenant. If a long range is empty or shorter than expected, data might not have been captured that far back.
