Kiro integration with Coralogix
Overview
The Kiro integration sends the Kiro daily usage metrics to Coralogix: credits, overage credits, messages, conversations, models, and tool calls for each Kiro user. Kiro sends the metrics through its OpenTelemetry metrics export, and the Kiro dashboard in AI Center shows them.
The setup has three parts:
- You configure the integration in Coralogix and launch one AWS CloudFormation stack in the AWS account and Region of your Kiro profile.
- The stack creates a secret in AWS Secrets Manager that holds the Coralogix endpoint and your Send-Your-Data API key.
- You turn on the OpenTelemetry metrics export in the Kiro console and select that secret.
Collection schedule
| Data | Schedule | Coverage |
|---|---|---|
| Daily metrics | Daily at 00:30 UTC | Previous UTC day, only users who were active on that day |
What you need
- A Kiro profile in the
us-east-1oreu-central-1Region. The integration covers only users that subscribe through the Kiro profile. - AWS permissions to create AWS CloudFormation stacks, AWS Key Management Service (AWS KMS) keys, and AWS Secrets Manager secrets in the AWS account of the Kiro profile.
- Kiro administrator permissions to edit and publish the Kiro profile policy. See Policy: Allow administrators to configure Kiro and subscribe users.
- A Coralogix Send-Your-Data API key.
- The Coralogix
INTEGRATIONS:READCONFIGpermission to view integrations andINTEGRATIONS:DEPLOYpermission to create or update them. The Data Admin and Platform Admin roles include deployment permission.
Set up the integration
-
In Coralogix, select Data Flow, then Integrations.
-
Search for and select Kiro.
-
Select Connect, then Add New.
-
Read Before you start, then select Next.
-
In Settings, configure the integration:
Field Description Integration Name Name of the integration. Coralogix also uses it in the stack name and the secret name. The default is kiro.API Key Your Send-Your-Data API key. Select an existing key or select Create a New Key. Kiro profile region The Region of your Kiro profile: us-east-1oreu-central-1. The stack is created in this Region. -
Select Next.
Launch the AWS CloudFormation stack
- In Launch the AWS stack, select Launch stack. The AWS CloudFormation console opens with all parameters filled in.
- Sign in to the AWS account of your Kiro profile, if you are not signed in.
- Select Create stack.
- When the stack status is
CREATE_COMPLETE, open the Outputs tab and copy the value ofDailyMetricsSecretArn.
Shows the DailyMetricsSecretArn output that you select in Kiro.
The stack, named coralogix-<integration name>, creates these resources:
| Resource | Description |
|---|---|
| AWS KMS key | Encrypts the secret. Its key policy lets Kiro decrypt only through AWS Secrets Manager, only in this Region, and only for this AWS account. Key rotation is on. |
Secret coralogix/<integration name>/daily-metrics | Holds the Coralogix OpenTelemetry endpoint and the authorization header with your API key. |
| Secret resource policy | Lets Kiro read the secret only for this AWS account. |
When the stack is complete, it reports to Coralogix and the integration shows as Active.
Turn on the metrics export in Kiro
Do these steps in the Kiro console, in the Region of your Kiro profile:
- In the navigation pane, select Controls, then select your policy.
- Select Edit.
- On the Rules and settings tab, go to Privacy and telemetry, and select Kiro user activity reports.
- Select the OpenTelemetry metrics tab.
- In Connection, select Turn on.
- For OpenTelemetry credentials, paste the
DailyMetricsSecretArnvalue from the stack outputs. The secret name iscoralogix/<integration name>/daily-metrics. - For OpenTelemetry protocol, select gRPC.
- For OpenTelemetry temporality, keep Delta.
- Select Save to draft.
- In Test connection, test the connection. Kiro sends one test record to Coralogix.
- Select Publish, then confirm.
Shows the published policy with the metrics export on and the Coralogix secret selected.
Kiro sends no usage data when you publish. The first export runs at the next 00:30 UTC and sends the previous day's metrics.
For the full Kiro procedure, including the deprecated Settings page, see Turn on exports in the Kiro console.
Collected data
Metrics
Kiro sends each metric for each active user and client type, one datapoint for each UTC day. The metrics are counters, except the averages, which are gauges. Breakdown metrics also have one series for each model, tool, kind, outcome, or agent mode.
| Metric | Description |
|---|---|
kiro_daily_credits_total | Credits used. |
kiro_daily_overage_credits_total | Overage credits used. |
kiro_daily_messages__messages__total | Messages. |
kiro_daily_conversations__conversations__total | Chat conversations. |
kiro_daily_model_messages__messages__total | Messages for each model. |
kiro_daily_model_credits_total | Credits for each model. Credits that Kiro can't attribute to a model are under unallocated. |
kiro_daily_requests_with_tools__requests__total | Requests that called at least one tool. |
kiro_daily_answers_cut_off__answers__total | Answers that stopped at the output length limit of the model. |
kiro_daily_avg_response_ms | Average response time in milliseconds. |
kiro_daily_client_version_seen__versions__total | Client versions used, with a value of 1 for each version. |
| Metric | Description |
|---|---|
kiro_daily_tool_calls__calls__total | Tool calls that the model asked for, for each tool. |
kiro_daily_tool_calls_client__calls__total | Tool calls that the Kiro client ran, for each tool. |
kiro_daily_tool_duration_ms_avg_client | Average tool call duration in milliseconds, for each tool. |
kiro_daily_tool_calls_by_kind_client__calls__total | Tool calls for each tool kind: built-in, Model Context Protocol (MCP), or skill. |
kiro_daily_tool_duration_by_kind_ms_avg_client | Average tool call duration in milliseconds, for each tool kind. |
kiro_daily_tool_calls_by_outcome_client__calls__total | Tool calls for each outcome. |
kiro_daily_tool_calls_by_agent_mode_client__calls__total | Tool calls for each agent mode. |
The metrics that end in _client need a supported Kiro client version. Kiro also sends tool error, MCP server, and skill metrics on the days that users have tool errors, MCP server calls, or skill loads. To list every Kiro metric in your account, search for kiro_daily in Metrics Explorer. For details on each metric, see OpenTelemetry metrics in the Kiro documentation.
Metric labels
| Label | Description |
|---|---|
kiro_user_id | The user ID from AWS IAM Identity Center or from your external identity provider. |
kiro_user_email | The email address of the user, when Kiro finds it. |
kiro_client_type | The Kiro client, for example KIRO_IDE or KIRO_CLI. |
kiro_user_new | Whether the user activated their subscription on that day. |
date | The activity date in UTC. |
kiro_subscription_tier, kiro_usage_limit, kiro_overage_enabled, kiro_overage_cap | The subscription and limits of the user, when set. |
kiro_model_name, kiro_tool_name, kiro_tool_kind, kiro_tool_outcome, kiro_tool_agent_mode, kiro_client_version | The breakdown value, on the breakdown metrics only. |
kiro_profile_id, kiro_profile_arn, kiro_account_id | The Kiro profile and its AWS account. |
service_name | Always kiro-enterprise. |
Limits and behavior
- Each datapoint covers one UTC day. Its timestamp is 23:59:59 of that day, and the
datelabel holds the same day. - Kiro sends a datapoint only for a user who was active on that day. A day with no activity has no datapoints.
- Kiro tries each daily export up to three times. When all attempts fail, Kiro does not send that day again.
- The integration does not backfill days before the first export.
- Daily metrics carry no application or subsystem name. Filter them by
service_name,kiro_profile_id, orkiro_account_id.
Validate the integration
Validate metrics
After you test the connection in Kiro, query the test record in Metrics Explorer:
kiro_test_connection__tests__total
After the first daily export, query the credits of the last two days:
sum by (kiro_user_email) (last_over_time(kiro_daily_credits_total[2d]))
Kiro stamps each datapoint at 23:59:59 UTC of the day it covers, so a query for the last few minutes returns nothing.
Kiro sends no notification when an export fails. Coralogix recommends an alert that fires when no metric with service_name="kiro-enterprise" arrives for 80 hours. Kiro sends no datapoints for a day with no active users, so a shorter window fires on weekends. On longer holidays, the alert can fire even when the export works.
View in AI Center
Navigate to AI Center, then Code Agents, then Kiro.
Troubleshoot missing data
| Symptom | Cause | What to do |
|---|---|---|
| The stack fails because the stack or the secret already exists. | Another integration with the same name exists in this AWS account and Region. | Set a different Integration Name in Coralogix, then launch the stack again. |
| The Kiro connection test fails. | The secret is in a different AWS account or Region from the Kiro profile. | Launch the stack in the AWS account and Region of the Kiro profile, then select the new secret in Kiro. |
| The connection test passes, but no daily metrics arrive. | No user was active on the previous day, the policy is not published, or the first export has not run yet. | Make sure users used Kiro on the previous day and that the policy is published. Check again after the next 00:30 UTC. |
| Data stops after you change the API key. | The secret still holds the old key. | Update the stack with the new key in the ApiKey parameter. Kiro reads the new secret value at the next export. |
Remove the integration
- In the Kiro console, open the OpenTelemetry metrics tab of your policy, select Turn off, then publish.
- In the AWS CloudFormation console, delete the
coralogix-<integration name>stack. AWS deletes the secret and schedules the KMS key for deletion after 7 days. - In Coralogix, delete the integration.

