---
title: Managed Agents Telemetry
description: Metrics, log attributes, and trace attributes that DigitalOcean Insights collects from Managed Agents.
product: Insights
url: https://docs.digitalocean.com/products/insights/reference/telemetry/mars/
last_updated: "2026-11-19"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# Managed Agents Telemetry

Generated on 19 Nov 2026

DigitalOcean Insights provides metrics, logs, traces, dashboards, and alerts to help you monitor, analyze, and troubleshoot supported DigitalOcean resources.

DigitalOcean Insights collects the following telemetry from Managed Agents. Use the metric names when you query metrics or build dashboard charts, and use the attributes to filter and group the results.

## Metrics

### Agent

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Boot Duration, `do.mars.agent.boot_duration` | Time to boot an agent microVM. Unit ms (in metadata). | Gauge | `ms` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Pause Events, `do.mars.agent.pause` | Agent microVM pause events. | Gauge | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Resume Events, `do.mars.agent.resume` | Agent microVM resume events. | Gauge | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Session Duration, `do.mars.agent.session_duration` | Total wall-clock duration of an agent session. Unit ms (in metadata). | Gauge | `ms` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Snapshot Restore Duration, `do.mars.agent.snapshot_restore` | Time to restore an agent microVM from a snapshot. Unit ms (in metadata). | Gauge | `ms` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Start Timestamp, `do.mars.agent.start_timestamp` | Wall-clock start time of an agent microVM. | Gauge | `s` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `start_type` | How the session or agent started. Claude sessions are fresh, resumed, or continued; agent microVMs are cold today (warm when the pool exists). |
| Termination Events, `do.mars.agent.termination` | Agent microVM termination events. | Gauge | `{count}` | `reason` | Failure or termination reason. HITL publish failures, or agent microVM termination (user_exit, error, timeout, or budget_limit). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |

### Claude Code

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Sessions Started, `do.mars.claude_code.session.count` | CLI sessions started, by start type (fresh, resumed, continued). | Counter (delta) | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `start_type` | How the session or agent started. Claude sessions are fresh, resumed, or continued; agent microVMs are cold today (warm when the pool exists). |
| Token Usage, `do.mars.claude_code.token.usage` | Tokens consumed by the Claude Code agent, split by type (input, output, cacheRead, cacheCreation), model, and query source. Overlaps do.mars.cost.tokens_* which the harness derives independently from its own event stream. | Counter (delta) | `{token}` | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `query_source` | Source of the Claude Code query. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `type` | Claude Code token kind (input, output, cacheRead, cacheCreation). |

### Codex

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Conversation Turns, `do.mars.codex.conversation.turn.count` | Turns executed within a conversation, by model. | Counter (delta) | `{count}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| MCP Tools List Duration Bucket, `do.mars.codex.mcp.tools.list.duration_ms_bucket` | Codex: MCP Tools List Duration (histogram buckets). | Counter (delta) | `ms` | `codex.cache.result` | Result of the Codex MCP tools-list cache lookup (hit or miss). |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| MCP Tools List Duration Count, `do.mars.codex.mcp.tools.list.duration_ms_count` | Count of observed samples for Codex: MCP Tools List Duration. | Counter (delta) | | `codex.cache.result` | Result of the Codex MCP tools-list cache lookup (hit or miss). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| MCP Tools List Duration Sum, `do.mars.codex.mcp.tools.list.duration_ms_sum` | Sum of observed samples for Codex: MCP Tools List Duration. | Counter (delta) | `ms` | `codex.cache.result` | Result of the Codex MCP tools-list cache lookup (hit or miss). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Tool Calls, `do.mars.codex.tool.call` | Tool invocations made by the agent, by tool name. | Counter (delta) | `{operation}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `success` | Whether a Codex tool call succeeded (true or false). |
| | | | | `tool` | Codex tool name on tool.call and tool.call.duration_ms datapoints. |
| Tool Call Duration Bucket, `do.mars.codex.tool.call.duration_ms_bucket` | Codex: Tool Call Duration (histogram buckets). | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `success` | Whether a Codex tool call succeeded (true or false). |
| | | | | `tool` | Codex tool name on tool.call and tool.call.duration_ms datapoints. |
| Tool Call Duration Count, `do.mars.codex.tool.call.duration_ms_count` | Count of observed samples for Codex: Tool Call Duration. | Counter (delta) | | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `success` | Whether a Codex tool call succeeded (true or false). |
| | | | | `tool` | Codex tool name on tool.call and tool.call.duration_ms datapoints. |
| Tool Call Duration Sum, `do.mars.codex.tool.call.duration_ms_sum` | Sum of observed samples for Codex: Tool Call Duration. | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `success` | Whether a Codex tool call succeeded (true or false). |
| | | | | `tool` | Codex tool name on tool.call and tool.call.duration_ms datapoints. |
| Unified Exec Tool Calls, `do.mars.codex.tool.unified_exec` | Unified exec tool invocations, by whether a TTY was used. | Counter (delta) | `{operation}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tty` | Whether a Codex unified_exec invocation used a TTY (true or false). |
| Turn End-To-End Duration Bucket, `do.mars.codex.turn.e2e_duration_ms_bucket` | Codex: Turn End-To-End Duration (histogram buckets). | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn End-To-End Duration Count, `do.mars.codex.turn.e2e_duration_ms_count` | Count of observed samples for Codex: Turn End-To-End Duration. | Counter (delta) | | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn End-To-End Duration Sum, `do.mars.codex.turn.e2e_duration_ms_sum` | Sum of observed samples for Codex: Turn End-To-End Duration. | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn Token Usage Bucket, `do.mars.codex.turn.token_usage_bucket` | Codex: Turn Token Usage (histogram buckets). | Counter (delta) | `{token}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tmp_mem_enabled` | Whether Codex temporary memory was enabled for the turn. |
| | | | | `token.type` | Codex token usage category (total, input, cached_input, cache_write_input, output, or reasoning_output). Not the Claude type key. |
| Turn Token Usage Count, `do.mars.codex.turn.token_usage_count` | Count of observed samples for Codex: Turn Token Usage. | Counter (delta) | | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tmp_mem_enabled` | Whether Codex temporary memory was enabled for the turn. |
| | | | | `token.type` | Codex token usage category (total, input, cached_input, cache_write_input, output, or reasoning_output). Not the Claude type key. |
| Turn Token Usage Sum, `do.mars.codex.turn.token_usage_sum` | Sum of observed samples for Codex: Turn Token Usage. | Counter (delta) | `{token}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tmp_mem_enabled` | Whether Codex temporary memory was enabled for the turn. |
| | | | | `token.type` | Codex token usage category (total, input, cached_input, cache_write_input, output, or reasoning_output). Not the Claude type key. |
| Tool Calls Per Turn Bucket, `do.mars.codex.turn.tool.call_bucket` | Codex: Tool Calls Per Turn (histogram buckets). | Counter (delta) | `{count}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tmp_mem_enabled` | Whether Codex temporary memory was enabled for the turn. |
| Tool Calls Per Turn Count, `do.mars.codex.turn.tool.call_count` | Count of observed samples for Codex: Tool Calls Per Turn. | Counter (delta) | | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tmp_mem_enabled` | Whether Codex temporary memory was enabled for the turn. |
| Tool Calls Per Turn Sum, `do.mars.codex.turn.tool.call_sum` | Sum of observed samples for Codex: Tool Calls Per Turn. | Counter (delta) | `{count}` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| | | | | `tmp_mem_enabled` | Whether Codex temporary memory was enabled for the turn. |
| Turn Time To First Message Bucket, `do.mars.codex.turn.ttfm.duration_ms_bucket` | Codex: Turn Time To First Message (histogram buckets). | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn Time To First Message Count, `do.mars.codex.turn.ttfm.duration_ms_count` | Count of observed samples for Codex: Turn Time To First Message. | Counter (delta) | | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn Time To First Message Sum, `do.mars.codex.turn.ttfm.duration_ms_sum` | Sum of observed samples for Codex: Turn Time To First Message. | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn Time To First Token Bucket, `do.mars.codex.turn.ttft.duration_ms_bucket` | Codex: Turn Time To First Token (histogram buckets). | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn Time To First Token Count, `do.mars.codex.turn.ttft.duration_ms_count` | Count of observed samples for Codex: Turn Time To First Token. | Counter (delta) | | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |
| Turn Time To First Token Sum, `do.mars.codex.turn.ttft.duration_ms_sum` | Sum of observed samples for Codex: Turn Time To First Token. | Counter (delta) | `ms` | `app.version` | Codex CLI version emitting the metric. |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `originator` | Client or surface that originated the Codex session. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `session.source` | Source of the Codex session. |

### Cost

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Cost By API Key, `do.mars.cost.api_key_breakdown` | Cost attribution broken down by API key. | Counter (cumulative) | `[USD]` | `ohs.api_key` | API key used to attribute model/inference cost. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Budget Breach, `do.mars.cost.budget_breach` | Occurrences where a session or team exceeded its configured cost budget. | Counter (cumulative) | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Budget Utilization, `do.mars.cost.budget_utilization` | Fraction of the configured budget consumed. Unit percent (in metadata). | Gauge | `%` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Cache Creation Tokens, `do.mars.cost.cache_creation_tokens` | Tokens written when creating prompt cache entries. | Counter (cumulative) | `{token}` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Cache Read Tokens, `do.mars.cost.cache_read_tokens` | Tokens served from prompt cache reads. | Counter (cumulative) | `{token}` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Cache Savings (USD), `do.mars.cost.cache_savings` | Estimated cost avoided by serving tokens from cache. Unit USD (in metadata). | Counter (cumulative) | `[USD]` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Cost Per Call (USD), `do.mars.cost.per_call` | Estimated model/inference cost per agent call. Unit USD (in metadata). | Gauge | `[USD]` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Session Total Cost (USD), `do.mars.cost.session_total` | Estimated total cost accrued over a session. Unit USD (in metadata). | Counter (cumulative) | `[USD]` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Input Tokens Per Call Bucket, `do.mars.cost.tokens_in_per_call_bucket` | Cost: Input Tokens Per Call (histogram buckets). | Counter (delta) | `{token}` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Input Tokens Per Call Count, `do.mars.cost.tokens_in_per_call_count` | Count of observed samples for Cost: Input Tokens Per Call. | Counter (delta) | | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Input Tokens Per Call Sum, `do.mars.cost.tokens_in_per_call_sum` | Sum of observed samples for Cost: Input Tokens Per Call. | Counter (delta) | `{token}` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Input Tokens Per Session (total), `do.mars.cost.tokens_in_session_total` | Total input (prompt) tokens consumed over a session. | Counter (cumulative) | `{token}` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Output Tokens Per Call Bucket, `do.mars.cost.tokens_out_per_call_bucket` | Cost: Output Tokens Per Call (histogram buckets). | Counter (delta) | `{token}` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Output Tokens Per Call Count, `do.mars.cost.tokens_out_per_call_count` | Count of observed samples for Cost: Output Tokens Per Call. | Counter (delta) | | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Output Tokens Per Call Sum, `do.mars.cost.tokens_out_per_call_sum` | Sum of observed samples for Cost: Output Tokens Per Call. | Counter (delta) | `{token}` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Output Tokens Per Session (total), `do.mars.cost.tokens_out_session_total` | Total output (completion) tokens produced over a session. | Counter (cumulative) | `{token}` | `model.id` | Model identifier on cost metrics. Separate from model. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |

### CrewAI

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Kickoff Duration Bucket, `do.mars.crewai.kickoff.duration_bucket` | CrewAI: Kickoff Duration (histogram buckets). | Counter (cumulative) | `ms` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `status` | Outcome of a CrewAI kickoff, task, tool call or LLM call: ok or error. |
| Kickoff Duration Count, `do.mars.crewai.kickoff.duration_count` | Count of observed samples for CrewAI: Kickoff Duration. | Counter (cumulative) | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `status` | Outcome of a CrewAI kickoff, task, tool call or LLM call: ok or error. |
| Kickoff Duration Sum, `do.mars.crewai.kickoff.duration_sum` | Sum of observed samples for CrewAI: Kickoff Duration. | Counter (cumulative) | `ms` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `status` | Outcome of a CrewAI kickoff, task, tool call or LLM call: ok or error. |
| LLM Calls, `do.mars.crewai.llm.calls` | LLM calls made by Crew agents, by model, agent role and outcome. | Counter (cumulative) | `{count}` | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `status` | Outcome of a CrewAI kickoff, task, tool call or LLM call: ok or error. |
| LLM Call Duration Bucket, `do.mars.crewai.llm.duration_bucket` | CrewAI: LLM Call Duration (histogram buckets). | Counter (cumulative) | `ms` | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| LLM Call Duration Count, `do.mars.crewai.llm.duration_count` | Count of observed samples for CrewAI: LLM Call Duration. | Counter (cumulative) | | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| LLM Call Duration Sum, `do.mars.crewai.llm.duration_sum` | Sum of observed samples for CrewAI: LLM Call Duration. | Counter (cumulative) | `ms` | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `model` | Model identifier on Claude Code and Codex token metrics and CrewAI LLM-call metrics. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Tasks, `do.mars.crewai.task.count` | Crew tasks finished, by task and outcome. | Counter (cumulative) | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `status` | Outcome of a CrewAI kickoff, task, tool call or LLM call: ok or error. |
| | | | | `task_name` | CrewAI task name: the task's name, else its truncated description (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Task Duration Bucket, `do.mars.crewai.task.duration_bucket` | CrewAI: Task Duration (histogram buckets). | Counter (cumulative) | `ms` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `task_name` | CrewAI task name: the task's name, else its truncated description (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Task Duration Count, `do.mars.crewai.task.duration_count` | Count of observed samples for CrewAI: Task Duration. | Counter (cumulative) | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `task_name` | CrewAI task name: the task's name, else its truncated description (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Task Duration Sum, `do.mars.crewai.task.duration_sum` | Sum of observed samples for CrewAI: Task Duration. | Counter (cumulative) | `ms` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `task_name` | CrewAI task name: the task's name, else its truncated description (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Tool Calls, `do.mars.crewai.tool.calls` | Tool calls made by Crew agents, by tool, agent role and outcome. | Counter (cumulative) | `{count}` | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `status` | Outcome of a CrewAI kickoff, task, tool call or LLM call: ok or error. |
| | | | | `tool_name` | CrewAI tool name (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Tool Call Duration Bucket, `do.mars.crewai.tool.duration_bucket` | CrewAI: Tool Call Duration (histogram buckets). | Counter (cumulative) | `ms` | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `tool_name` | CrewAI tool name (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Tool Call Duration Count, `do.mars.crewai.tool.duration_count` | Count of observed samples for CrewAI: Tool Call Duration. | Counter (cumulative) | | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `tool_name` | CrewAI tool name (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |
| Tool Call Duration Sum, `do.mars.crewai.tool.duration_sum` | Sum of observed samples for CrewAI: Tool Call Duration. | Counter (cumulative) | `ms` | `agent_role` | CrewAI agent role (customer-defined; harness_crewai keeps the first 64 distinct values per guest, truncated to 128 characters, then reports other). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `tool_name` | CrewAI tool name (customer-defined; first 64 distinct values per guest, truncated to 128 characters, then other). |

### HITL

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Approval Request Failures Total, `do.mars.hitl.approval_request_failures_total` | HITL approval requests that failed to publish, by action kind, failure reason, team, and session. | Counter (cumulative) | `{count}` | `action` | HITL approval action kind. |
| | | | | `reason` | Failure or termination reason. HITL publish failures, or agent microVM termination (user_exit, error, timeout, or budget_limit). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Approval Requests Total, `do.mars.hitl.approval_requested_total` | HITL approval requests published, by action kind, team, and session. | Counter (delta) | `{count}` | `action` | HITL approval action kind. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Approvals Resolved Total, `do.mars.hitl.approval_resolved_total` | HITL approval requests resolved by a human decision, by outcome, action kind, team, and session. | Counter (delta) | `{count}` | `action` | HITL approval action kind. |
| | | | | `outcome` | Human HITL decision (approve, reject, or defer). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Approval Timeouts Total, `do.mars.hitl.approval_timeouts_total` | HITL approval requests force-resolved after the approval window expired without a human decision, by action kind, team, and session. | Counter (cumulative) | `{count}` | `action` | HITL approval action kind. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Decision Latency Bucket, `do.mars.hitl.decision_latency_ms_bucket` | HITL: Decision Latency (histogram buckets). | Counter (delta) | `ms` | `action` | HITL approval action kind. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `outcome` | Human HITL decision (approve, reject, or defer). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Decision Latency Count, `do.mars.hitl.decision_latency_ms_count` | Count of observed samples for HITL: Decision Latency. | Counter (delta) | | `action` | HITL approval action kind. |
| | | | | `outcome` | Human HITL decision (approve, reject, or defer). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Decision Latency Sum, `do.mars.hitl.decision_latency_ms_sum` | Sum of observed samples for HITL: Decision Latency. | Counter (delta) | `ms` | `action` | HITL approval action kind. |
| | | | | `outcome` | Human HITL decision (approve, reject, or defer). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |

### LangGraph

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Calls, `do.mars.langgraph.calls` | LangGraph spans (model calls, tool calls, graph/chain steps) counted in the guest collector, by run type, model, provider, tool and span status. | Counter (cumulative) | `{count}` | `gen_ai.request.model` | Model the GenAI request asked for (OTel GenAI semantic conventions), on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.system` | GenAI provider (OTel GenAI semantic conventions), for example openai or anthropic, on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.tool.name` | Name of the tool a Managed Agent called: on per-turn trace spans, and on LangGraph metrics derived from LangSmith spans (unknown on non-tool spans). OTel GenAI semantic conventions. |
| | | | | `langsmith.span.kind` | LangSmith run type of the span a LangGraph metric was derived from: llm, tool, chain, retriever, prompt or parser. |
| | | | | `otel.metric.overflow` | Set to true on the single series the OpenTelemetry span_metrics connector folds label combinations into once its cardinality cap is reached. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `span.kind` | OpenTelemetry span kind of the span a metric was derived from (SPAN_KIND_INTERNAL, SPAN_KIND_CLIENT, ...). |
| | | | | `status.code` | OpenTelemetry status of the span a metric was derived from (STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR). |
| Duration Bucket, `do.mars.langgraph.duration_bucket` | LangGraph: Duration (histogram buckets). | Counter (cumulative) | `ms` | `gen_ai.request.model` | Model the GenAI request asked for (OTel GenAI semantic conventions), on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.system` | GenAI provider (OTel GenAI semantic conventions), for example openai or anthropic, on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.tool.name` | Name of the tool a Managed Agent called: on per-turn trace spans, and on LangGraph metrics derived from LangSmith spans (unknown on non-tool spans). OTel GenAI semantic conventions. |
| | | | | `langsmith.span.kind` | LangSmith run type of the span a LangGraph metric was derived from: llm, tool, chain, retriever, prompt or parser. |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `otel.metric.overflow` | Set to true on the single series the OpenTelemetry span_metrics connector folds label combinations into once its cardinality cap is reached. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `span.kind` | OpenTelemetry span kind of the span a metric was derived from (SPAN_KIND_INTERNAL, SPAN_KIND_CLIENT, ...). |
| | | | | `status.code` | OpenTelemetry status of the span a metric was derived from (STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR). |
| Duration Count, `do.mars.langgraph.duration_count` | Count of observed samples for LangGraph: Duration. | Counter (cumulative) | | `gen_ai.request.model` | Model the GenAI request asked for (OTel GenAI semantic conventions), on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.system` | GenAI provider (OTel GenAI semantic conventions), for example openai or anthropic, on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.tool.name` | Name of the tool a Managed Agent called: on per-turn trace spans, and on LangGraph metrics derived from LangSmith spans (unknown on non-tool spans). OTel GenAI semantic conventions. |
| | | | | `langsmith.span.kind` | LangSmith run type of the span a LangGraph metric was derived from: llm, tool, chain, retriever, prompt or parser. |
| | | | | `otel.metric.overflow` | Set to true on the single series the OpenTelemetry span_metrics connector folds label combinations into once its cardinality cap is reached. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `span.kind` | OpenTelemetry span kind of the span a metric was derived from (SPAN_KIND_INTERNAL, SPAN_KIND_CLIENT, ...). |
| | | | | `status.code` | OpenTelemetry status of the span a metric was derived from (STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR). |
| Duration Sum, `do.mars.langgraph.duration_sum` | Sum of observed samples for LangGraph: Duration. | Counter (cumulative) | `ms` | `gen_ai.request.model` | Model the GenAI request asked for (OTel GenAI semantic conventions), on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.system` | GenAI provider (OTel GenAI semantic conventions), for example openai or anthropic, on LangGraph metrics derived from LangSmith spans; unknown when the span has none. |
| | | | | `gen_ai.tool.name` | Name of the tool a Managed Agent called: on per-turn trace spans, and on LangGraph metrics derived from LangSmith spans (unknown on non-tool spans). OTel GenAI semantic conventions. |
| | | | | `langsmith.span.kind` | LangSmith run type of the span a LangGraph metric was derived from: llm, tool, chain, retriever, prompt or parser. |
| | | | | `otel.metric.overflow` | Set to true on the single series the OpenTelemetry span_metrics connector folds label combinations into once its cardinality cap is reached. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `span.kind` | OpenTelemetry span kind of the span a metric was derived from (SPAN_KIND_INTERNAL, SPAN_KIND_CLIENT, ...). |
| | | | | `status.code` | OpenTelemetry status of the span a metric was derived from (STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR). |

### OAH

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Active Runs, `do.mars.oah_active_runs` | Number of currently active Open Access Hub runs. Gauge. | Gauge | `{count}` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.status` | Active-run status label. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Handshake Attempts Bucket, `do.mars.oah_adapter_handshake_attempts_bucket` | OAH: Adapter Handshake Attempts (histogram buckets). | Counter (cumulative) | `{count}` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Handshake Attempts Count, `do.mars.oah_adapter_handshake_attempts_count` | Count of observed samples for OAH: Adapter Handshake Attempts. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Handshake Attempts Sum, `do.mars.oah_adapter_handshake_attempts_sum` | Sum of observed samples for OAH: Adapter Handshake Attempts. | Counter (cumulative) | `{count}` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Spawn Step Duration Bucket, `do.mars.oah_adapter_spawn_step_duration_seconds_bucket` | OAH: Adapter Spawn Step Duration (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.step` | OAH adapter spawn step name. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Spawn Step Duration Count, `do.mars.oah_adapter_spawn_step_duration_seconds_count` | Count of observed samples for OAH: Adapter Spawn Step Duration. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.step` | OAH adapter spawn step name. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Spawn Step Duration Sum, `do.mars.oah_adapter_spawn_step_duration_seconds_sum` | Sum of observed samples for OAH: Adapter Spawn Step Duration. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.step` | OAH adapter spawn step name. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Start Duration Bucket, `do.mars.oah_adapter_start_duration_seconds_bucket` | OAH: Adapter Start Duration (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Start Duration Count, `do.mars.oah_adapter_start_duration_seconds_count` | Count of observed samples for OAH: Adapter Start Duration. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Start Duration Sum, `do.mars.oah_adapter_start_duration_seconds_sum` | Sum of observed samples for OAH: Adapter Start Duration. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Start Phase Duration Bucket, `do.mars.oah_adapter_start_phase_duration_seconds_bucket` | OAH: Adapter Start Phase Duration (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `oah.phase` | OAH adapter start phase name. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Start Phase Duration Count, `do.mars.oah_adapter_start_phase_duration_seconds_count` | Count of observed samples for OAH: Adapter Start Phase Duration. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `oah.phase` | OAH adapter start phase name. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Start Phase Duration Sum, `do.mars.oah_adapter_start_phase_duration_seconds_sum` | Sum of observed samples for OAH: Adapter Start Phase Duration. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `oah.phase` | OAH adapter start phase name. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Adapter Unhandled Events Total, `do.mars.oah_adapter_unhandled_event_total` | Unhandled adapter events. Counter. | Counter (cumulative) | `{count}` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.raw_type` | Raw unhandled adapter event type. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Provider Requests Total, `do.mars.oah_provider_request_total` | Provider requests made by OAH. Counter. | Counter (cumulative) | `{request}` | `oah.operation` | OAH provider request operation. |
| | | | | `oah.provider` | OAH model or tool provider. |
| | | | | `oah.status_class` | HTTP/RPC status class on OAH provider requests. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Handshake Duration Bucket, `do.mars.oah_run_handshake_duration_seconds_bucket` | OAH: Run Handshake Duration (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Handshake Duration Count, `do.mars.oah_run_handshake_duration_seconds_count` | Count of observed samples for OAH: Run Handshake Duration. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Handshake Duration Sum, `do.mars.oah_run_handshake_duration_seconds_sum` | Sum of observed samples for OAH: Run Handshake Duration. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Spawn Duration Bucket, `do.mars.oah_run_spawn_duration_seconds_bucket` | OAH: Run Spawn Duration (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Spawn Duration Count, `do.mars.oah_run_spawn_duration_seconds_count` | Count of observed samples for OAH: Run Spawn Duration. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Spawn Duration Sum, `do.mars.oah_run_spawn_duration_seconds_sum` | Sum of observed samples for OAH: Run Spawn Duration. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Terminal Total, `do.mars.oah_run_terminal_total` | OAH runs that reached a terminal state. Counter. | Counter (cumulative) | `{count}` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `oah.reason` | Terminal or failure reason for an OAH run. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Time to First Token Bucket, `do.mars.oah_run_time_to_first_token_seconds_bucket` | OAH: Run Time to First Token (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Time to First Token Count, `do.mars.oah_run_time_to_first_token_seconds_count` | Count of observed samples for OAH: Run Time to First Token. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Time to First Token Sum, `do.mars.oah_run_time_to_first_token_seconds_sum` | Sum of observed samples for OAH: Run Time to First Token. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Total Duration Bucket, `do.mars.oah_run_total_duration_seconds_bucket` | OAH: Run Total Duration (histogram buckets). | Counter (cumulative) | `s` | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| | | | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Total Duration Count, `do.mars.oah_run_total_duration_seconds_count` | Count of observed samples for OAH: Run Total Duration. | Counter (cumulative) | | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Run Total Duration Sum, `do.mars.oah_run_total_duration_seconds_sum` | Sum of observed samples for OAH: Run Total Duration. | Counter (cumulative) | `s` | `oah.adapter` | OAH adapter name for the run or handshake. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Session Resolve Total, `do.mars.oah_session_resolve_total` | Session resolve attempts. Counter. | Counter (cumulative) | `{count}` | `oah.outcome` | Outcome of an OAH adapter, run, or session resolve. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |

### Session

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Active Sessions, `do.mars.session.active_sessions` | Number of currently active agent sessions. | Gauge | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Client Device, `do.mars.session.client_device` | Client device/platform originating the agent session. | Counter (delta) | `{count}` | `device_type` | Client device class that created the agent session (cli, web, grpc, or api). |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Lifecycle Transitions, `do.mars.session.lifecycle` | Session lifecycle transitions (created, paused, resumed, destroyed) by event type and reason. | Counter (cumulative) | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.event_type` | Session lifecycle event type (created, paused, resumed, or destroyed). |
| | | | | `session.reason` | Reason for a session lifecycle transition. |
| Origin Region, `do.mars.session.origin_region` | Region the agent session originated from. | Counter (delta) | `{count}` | `region` | ISO country code the agent session originated from. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| Sandboxes Started, `do.mars.session.sandbox_count_started` | Sandboxes started for agent sessions. | Counter (delta) | `{count}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |

### System

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Load Average 15m, `do.mars.system.cpu.load_average.15m` | 15-minute load average. Gauge. | Gauge | `{thread}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Load Average 1m, `do.mars.system.cpu.load_average.1m` | 1-minute load average. Gauge. | Gauge | `{thread}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Load Average 5m, `do.mars.system.cpu.load_average.5m` | 5-minute load average. Gauge. | Gauge | `{thread}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Logical CPU Count, `do.mars.system.cpu.logical.count` | Number of logical CPU cores available. Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `{cpu}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| CPU Time, `do.mars.system.cpu.time` | Seconds each CPU spent in each mode (user, system, idle, etc.). Counter. | Counter (cumulative) | `s` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| CPU Utilization, `do.mars.system.cpu.utilization` | Percentage of CPU used per core/state. Gauge. | Gauge | `1` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Disk I/O, `do.mars.system.disk.io` | Bytes read/written per disk device. Counter. | Counter (cumulative) | `By` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Disk I/O Time, `do.mars.system.disk.io_time` | Time disk spent in I/O operations. Counter. | Counter (cumulative) | `s` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| Disk Merged Operations, `do.mars.system.disk.merged` | Read/write operations merged into already-queued operations, per disk device. Counter. | Counter (cumulative) | `{operation}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Disk Operation Time, `do.mars.system.disk.operation_time` | Total time spent on read/write operations. Counter. | Counter (cumulative) | `s` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Disk Operations, `do.mars.system.disk.operations` | Read/write operations per disk device. Counter. | Counter (cumulative) | `{operation}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Disk Pending Operations, `do.mars.system.disk.pending_operations` | Number of pending disk operations. Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `{operation}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| Disk Weighted I/O Time, `do.mars.system.disk.weighted_io_time` | Time spent in I/O weighted by queue depth, per disk device. Counter. | Counter (cumulative) | `s` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| Filesystem Inodes Usage, `do.mars.system.filesystem.inodes.usage` | Inodes used/free per mount point. Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `{count}` | `filesystem.device` | Device identifier associated with the metric. |
| | | | | `filesystem.mode` | Filesystem mount mode (for example rw or ro). |
| | | | | `filesystem.mountpoint` | Filesystem mount point path. |
| | | | | `filesystem.type` | Filesystem type. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Filesystem Usage, `do.mars.system.filesystem.usage` | Bytes used/free per mount point. Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `By` | `filesystem.device` | Device identifier associated with the metric. |
| | | | | `filesystem.mode` | Filesystem mount mode (for example rw or ro). |
| | | | | `filesystem.mountpoint` | Filesystem mount point path. |
| | | | | `filesystem.type` | Filesystem type. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Filesystem Utilization, `do.mars.system.filesystem.utilization` | Percentage of filesystem used per mount point. Gauge. | Gauge | `1` | `filesystem.device` | Device identifier associated with the metric. |
| | | | | `filesystem.mode` | Filesystem mount mode (for example rw or ro). |
| | | | | `filesystem.mountpoint` | Filesystem mount point path. |
| | | | | `filesystem.type` | Filesystem type. |
| | | | | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| Memory Usage, `do.mars.system.memory.usage` | Bytes of memory in each state (used, free, buffered, cached, etc.). Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `By` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Memory Utilization, `do.mars.system.memory.utilization` | Percentage of memory used per state. Gauge. | Gauge | `1` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Network Connections, `do.mars.system.network.connections` | Number of connections in each state (TCP states). Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `{connection}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.protocol` | Network protocol for connection counts (for example tcp). |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Network Dropped, `do.mars.system.network.dropped` | Packets dropped per interface (direction transmit/receive). Counter. | Counter (cumulative) | `{packet}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Network Errors, `do.mars.system.network.errors` | Number of network errors per interface (direction transmit/receive). Counter. | Counter (cumulative) | `{error}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Network I/O, `do.mars.system.network.io` | Bytes sent/received per interface. Counter. | Counter (cumulative) | `By` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Network Packets, `do.mars.system.network.packets` | Packets sent/received per interface. Counter. | Counter (cumulative) | `{packet}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.device` | Block or network device name. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| Paging Faults, `do.mars.system.paging.faults` | Number of page faults (major/minor). Counter. | Counter (cumulative) | `{fault}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.paging_type` | Paging operation or fault type (major/minor or in/out). |
| Paging Operations, `do.mars.system.paging.operations` | Number of page-in/page-out operations. Counter. | Counter (cumulative) | `{operation}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.direction` | I/O direction (read/write or receive/transmit). |
| | | | | `system.paging_type` | Paging operation or fault type (major/minor or in/out). |
| Paging Usage, `do.mars.system.paging.usage` | Bytes of swap used/free. Sum. | Gauge | `By` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.state` | State breakdown for CPU, memory, filesystem, or network connections. |
| Process Count, `do.mars.system.processes.count` | Number of processes in each state (running, sleeping, blocked, etc.). Non-monotonic cumulative Sum (UpDownCounter). | Counter (cumulative) | `{process}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |
| | | | | `system.process_status` | Process state (running, sleeping, blocked, and similar). |
| Processes Created, `do.mars.system.processes.created` | Total number of processes created (cumulative). Counter. | Counter (cumulative) | `{process}` | `resource.region.slug` | Slug of the region where the resource runs. |
| | | | | `resource.type` | Kind of resource the metric describes (for example agent). |
| | | | | `resource.urn` | URN identifying the resource associated with the telemetry. |
| | | | | `sandbox.id` | Sandbox identifier for the agent microVM. |
| | | | | `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| | | | | `service.instance.id` | harness-api replica identity so delta counters stay additive across pods. |
| | | | | `session.id` | Agent session identifier. |

## Log Attributes

Logs from Managed Agents can include the following attributes:

| Attribute | Description |
|---|---|
| `log.file.path` | Path of the guest log file a record was read from (for example the OpenHands agent-server log in a Managed Agent sandbox). |
| `mars.hitl.action` | Kind of action a Managed Agent asked a human to approve (for example HITL_ACTION_BASH). |
| `mars.hitl.decision_latency_ms` | Time in milliseconds a human took to decide a Managed Agent approval request (from request creation to decision). |
| `mars.hitl.event` | Managed Agent human-in-the-loop approval moment (requested, resolved). |
| `mars.hitl.outcome` | Human decision on a Managed Agent approval request (approve, reject, defer). |
| `mars.hitl.request` | The action payload a Managed Agent asked a human to approve (for example the gated shell command). |
| `mars.hitl.request_id` | Identifier of a Managed Agent human-in-the-loop approval request, correlating its requested and resolved log records. |
| `mars.session.event` | Managed Agent session lifecycle transition (created, paused, resumed, rolled_back, or destroyed). |
| `mars.session.reason` | Cause of a Managed Agent session lifecycle transition (explicit, idle_timeout, input, hitl, trigger, or zero_balance). |
| `mars.session.status` | Managed Agent session status at the time of the lifecycle event. |
| `resource.region.slug` | Slug of the region where the resource runs. |
| `resource.related_urn` | Secondary resource URN for records that may concern more than one resource. |
| `resource.type` | Kind of resource the metric describes (for example agent). |
| `resource.urn` | URN identifying the resource associated with the telemetry. |
| `service.namespace` | Logical namespace of the emitting service. |

## Trace Attributes

Traces from Managed Agents can include the following attributes:

| Attribute | Description |
|---|---|
| `gen_ai.agent.name` | Name of the agent that ran a Managed Agent turn (the coding adapter: opencode, codex, claude-code, …). OTel GenAI semantic conventions. |
| `gen_ai.tool.call.id` | Identifier of one tool call inside a Managed Agent turn; joins the span to the run.tool_call_* events on the session stream. OTel GenAI semantic conventions. |
| `gen_ai.tool.name` | Name of the tool a Managed Agent called: on per-turn trace spans, and on LangGraph metrics derived from LangSmith spans (unknown on non-tool spans). OTel GenAI semantic conventions. |
| `gen_ai.usage.input_tokens` | Input (prompt) tokens consumed by a Managed Agent turn. OTel GenAI semantic conventions. |
| `gen_ai.usage.output_tokens` | Output (completion) tokens produced by a Managed Agent turn. OTel GenAI semantic conventions. |
| `mars.hitl.action` | Kind of action a Managed Agent asked a human to approve (for example HITL_ACTION_BASH). |
| `mars.hitl.outcome` | Human decision on a Managed Agent approval request (approve, reject, defer). |
| `mars.hitl.request_id` | Identifier of a Managed Agent human-in-the-loop approval request, correlating its requested and resolved log records. |
| `mars.run.id` | Identifier of the Managed Agent run (one turn) a span or record belongs to. |
| `mars.tool.outcome` | Result of a tool call inside a Managed Agent turn (ok, error; unterminated when the turn ended before the call completed). |
| `mars.turn.error_class` | Canonical failure class of a Managed Agent turn that failed (never the error message). |
| `mars.turn.outcome` | How a Managed Agent turn ended (completed, failed, paused). |
| `resource.region.slug` | Slug of the region where the resource runs. |
| `resource.type` | Kind of resource the metric describes (for example agent). |
| `resource.urn` | URN identifying the resource associated with the telemetry. |
| `sandbox.id` | Sandbox identifier for the agent microVM. |
| `sandbox.image.id` | Image identifier the agent sandbox was booted from. |
| `service.namespace` | Logical namespace of the emitting service. |
| `session.id` | Agent session identifier. |