Skip to main content

OpenTelemetry metrics

Kiro sends the same daily metrics as the CSV report to your OpenTelemetry Protocol (OTLP) collector. Each day at 00:30 UTC, Kiro sends the previous day's credits, overage credits, messages, conversations, tool calls, and response times, with breakdowns by model, tool, and client version.

To set up the export, prepare credentials, and then turn on OpenTelemetry metrics.

How Kiro sends the metrics

  • Protocol. OTLP over gRPC (the default) or HTTP/protobuf. Choose the one that your collector accepts.
  • Time. Each datapoint covers one activity day in UTC. Its start time is 00:00:00 and its time is 23:59:59.999999999 of that day. The date attribute holds the same day. So a datapoint is about 30 minutes old when it arrives.
  • Temporality. Delta by default. See Choose a temporality.
  • Resource. Every export has the resource attribute service.name = kiro-enterprise.

Check your platform's time window

Some platforms reject datapoints that are too old. Each datapoint is stamped 23:59:59 of the day it covers, so it is about 30 minutes old when it arrives. Amazon CloudWatch accepts the datapoints, because it rejects only points older than 14 days. Prometheus accepts them only with out_of_order_time_window set. See Prometheus and Loki.

Dynatrace and Grafana Cloud reject datapoints older than one hour:

  • Dynatrace accepts datapoints with timestamps up to one hour in the past and rejects older ones. See Metric ingestion protocol in the Dynatrace documentation.
  • Grafana Cloud rejects a sample when its timestamp is more than one hour older than the newest sample ingested for the tenant. See err-mimir-sample-timestamp-too-old in the Grafana Mimir documentation.

The daily datapoints arrive about 30 minutes old, within the one-hour limit. A delivery that Kiro retries can arrive more than one hour old, and those platforms can reject it.

Choose a temporality

Each datapoint holds one full day's total, so both settings report the same number. Choose the one that your platform accepts.

PlatformTemporality
Grafana Cloud, Prometheus, and other Prometheus-based backendsCumulative
Honeycomb, Dynatrace, Amazon CloudWatch, and most OpenTelemetry collectorsDelta, the default

If your platform isn't in the table, keep Delta.

Prometheus and Loki

If your collector writes to Prometheus through its OTLP receiver, set two things:

  1. Set out_of_order_time_window in the tsdb section of the Prometheus configuration, for example to 2d. Without it, Prometheus rejects Kiro's datapoints with HTTP 400, because they are older than its newest samples.
  2. Choose Cumulative temporality. If you keep Delta, start Prometheus with --enable-feature=otlp-deltatocumulative. Otherwise Prometheus drops the delta counters.

Loki stores logs, not metrics, so it doesn't receive the daily metrics. Send real-time events to Loki instead.

Confirm the export

Kiro doesn't send success or failure notifications. Check your collector after the first daily export, at 00:30 UTC.

CheckExpected
Metricskiro.daily.credits and kiro.daily.messages exist
Resource attributeservice.name = kiro-enterprise
DatapointsOne per active user and client type, for each metric. Breakdown metrics have one datapoint per model, tool, or client version that the user used
date attributeThe activity date, which is the day before the export
AttributesAt least kiro.user.id, kiro.client.type, and kiro.user.new
PlatformWhere to check
HoneycombThe kiro-enterprise dataset. Visualize SUM(kiro.daily.credits)
Grafana CloudExplore, your Prometheus data source, {__name__="kiro_daily_credits"}
DatadogMetrics Explorer, kiro.daily.credits, filtered on the service tag
ElasticKibana Discover or Metrics Explorer, filtered on service.name : "kiro-enterprise"
OpenSearchQuery your index for serviceName:kiro-enterprise
Amazon CloudWatchA PromQL range query against https://monitoring.<region>.amazonaws.com/api/v1/query_range. The metrics are in the AWS account that issued the API key. They don't show in the classic metrics console or in ListMetrics

If data seems to be missing, check these causes first:

  • The step is too coarse. Each series gets one datapoint a day. Use a narrow time window around the datapoint time and a fine step, such as 60 seconds.
  • The name changed. Prometheus-based backends replace periods with underscores, so kiro.daily.credits can appear as kiro_daily_credits.
  • A name is not data. A metric name can stay in an index or autocomplete after its datapoints fall outside your time window.

Metrics

All metrics are in the kiro.daily.* namespace. Each metric in this table is a monotonic OTLP Sum counter, except kiro.daily.avg_response_ms, which is a Gauge.

MetricDescriptionCSV column
kiro.daily.creditsCredits usedCredits_Used
kiro.daily.overage_creditsOverage credits usedOverage_Credits_Used
kiro.daily.messagesTotal messagesTotal_Messages
kiro.daily.conversationsChat conversationsChat_Conversations
kiro.daily.model_messagesMessages per model*model_name*_messages
kiro.daily.model_creditsCredits per model. Credits that Kiro can't attribute to a model are under unallocated*model_name*_credits
kiro.daily.tool_callsTool calls per tool*tool_name*_tool_calls
kiro.daily.requests_with_toolsRequests that called at least one toolRequests_With_Tools
kiro.daily.answers_cut_offAnswers that stopped at the model's output length limitAnswers_Cut_Off
kiro.daily.client_version_seenClient versions used, one datapoint with value 1 per versionClient_Version
kiro.daily.avg_response_msAverage response time in milliseconds, from when Kiro received the request to the end of the response. Not sent when the user had no timed requestsAvg_Response_Ms

Breakdown metrics carry the attribute that names the series:

  • kiro.daily.model_messages and kiro.daily.model_credits carry kiro.model.name.
  • kiro.daily.tool_calls carries kiro.tool.name.
  • kiro.daily.client_version_seen carries kiro.client.version.

In CSV column names, hyphens in model names become underscores. For example, claude-sonnet-4-5 becomes claude_sonnet_4_5_credits. Tool names are used as they are.

Client-measured tool metrics

kiro.daily.tool_calls counts the tools that the model asked for. The metrics that end in _client count the tool calls that the Kiro client ran and reported. They need a supported client version. See Client versions.

MetricTypeSeries attributeDescriptionCSV column
kiro.daily.tool_calls_clientSumkiro.tool.nameTool calls that the client ran, for each tool*tool_name*_tool_calls_client
kiro.daily.tool_errors_clientSumkiro.tool.nameTool call errors, for each tool*tool_name*_tool_errors_client
kiro.daily.tool_duration_ms_avg_clientGaugekiro.tool.nameAverage tool call duration in milliseconds, for each tool*tool_name*_tool_duration_ms_avg_client
kiro.daily.tool_calls_by_kind_clientSumkiro.tool.kindTool calls for each tool kind*kind*_tool_calls_by_kind_client
kiro.daily.tool_duration_by_kind_ms_avg_clientGaugekiro.tool.kindAverage tool call duration in milliseconds, for each tool kind*kind*_tool_duration_by_kind_ms_avg_client
kiro.daily.tool_calls_by_outcome_clientSumkiro.tool.outcomeTool calls for each outcome*outcome*_tool_calls_by_outcome_client
kiro.daily.tool_errors_by_type_clientSumkiro.error.typeTool call errors for each error type*errorType*_tool_errors_by_type_client
kiro.daily.mcp_server_calls_clientSumkiro.mcp.serverTool calls for each MCP server*server*_mcp_server_calls_client
kiro.daily.mcp_server_errors_clientSumkiro.mcp.serverTool call errors for each MCP server*server*_mcp_server_errors_client
kiro.daily.mcp_server_duration_ms_avg_clientGaugekiro.mcp.serverAverage tool call duration in milliseconds, for each MCP server*server*_mcp_server_duration_ms_avg_client
kiro.daily.skill_calls_clientSumkiro.skill.nameSkill loads for each skill*skill*_skill_calls_client
kiro.daily.tool_calls_by_agent_mode_clientSumkiro.tool.agent_modeTool calls for each agent mode*mode*_tool_calls_by_agent_mode_client

The series attribute holds the value as the client reported it. Kind, outcome, and agent mode values are uppercase, such as kiro.tool.kind = MCP or kiro.tool.outcome = COMPLETED, while the matching CSV column names use lowercase, such as mcp_tool_calls_by_kind_client. For the counting rules, see Client-measured tool columns.

Attributes

AttributeTypePresenceDescription
kiro.user.idstringAlwaysThe user's IAM Identity Center user ID. If the profile signs in through an external identity provider, the user ID from that provider
kiro.client.typestringAlwaysKIRO_IDE, KIRO_CLI, KIRO_WEB, KIRO_CREW, or PLUGIN. Other values can appear as Kiro adds clients
kiro.user.newbooleanAlwaysWhether the user activated their subscription that day
datestringWhen setActivity date in UTC
kiro.user.emailstringWhen Kiro finds itThe user's email address. With an external identity provider that has no email address for the user, the user name
kiro.subscription.tierstringWhen setSubscription tier
kiro.usage.limitintegerWhen setThe user's usage limit
kiro.overage.enabledbooleanWhen setWhether overage is enabled for the user
kiro.overage.capdoubleWhen setThe user's overage cap, with the same precision as the CSV report
kiro.model.namestringModel metrics onlyModel name. Internal models that Kiro uses for its own processing are left out of kiro.daily.model_messages. On kiro.daily.model_credits, unallocated holds credits with no model
kiro.tool.namestringkiro.daily.tool_calls and the per-tool _client metricsName of the tool
kiro.tool.kindstringPer-kind _client metricsBUILTIN, MCP, SKILL, or UNKNOWN
kiro.tool.outcomestringkiro.daily.tool_calls_by_outcome_client onlyThe tool call outcome, such as COMPLETED or ABORT
kiro.tool.agent_modestringkiro.daily.tool_calls_by_agent_mode_client onlyThe agent mode, such as VIBE or SPEC
kiro.error.typestringkiro.daily.tool_errors_by_type_client onlyThe type of error
kiro.mcp.serverstringPer-server _client metricsThe configured MCP server name
kiro.skill.namestringkiro.daily.skill_calls_client onlyThe name in the skill's SKILL.md file
kiro.client.versionstringkiro.daily.client_version_seen onlyVersion of the Kiro client that sent the requests

Each export also has these resource attributes:

Resource attributeValue
service.namekiro-enterprise
kiro.profile.arnarn:aws:codewhisperer:<region>:<account-id>:profile/<profile-id>
kiro.profile.idThe Kiro profile ID
kiro.account.idThe AWS account that holds the Kiro profile

Costs

  • AWS Secrets Manager and AWS KMS. Kiro reads your metrics secret, and decrypts it with your key, once for each daily export. Your account pays for these requests.
  • Your platform. Each user and each breakdown value, such as a model, tool, MCP server, Skill, or agent mode, forms its own metric series. How your platform charges for series and datapoints depends on the provider.

Delivery behavior

  • Kiro makes up to three attempts for each activity date when a failure is temporary.
  • When all attempts fail, Kiro doesn't send that date again. Your collector has a gap for that day. If you also turn on the CSV report, use that day's report to fill the gap, because it holds the same daily metrics.
  • If a date is sent again, Kiro doesn't remove duplicates at your collector.
  • Kiro treats a request that your collector accepted as a success, even if the collector drops datapoints in it later.
  • A configuration error, such as a wrong protocol, fails every day until you fix it. Kiro uses the fixed secret at the next daily export.

If no metrics arrive, see Troubleshooting.

Page updated: November 24, 2026