---
title: Kiro integration
description: Send Kiro daily usage metrics, credits, messages, models, and tool calls per user to Coralogix through the Kiro OpenTelemetry export.
url: https://coralogix.com/docs/integrations/ai-observability/kiro/
product: ai
feature: Code Agents
feature_id: ai-center-code-agents
feature_identifier: ai/ai-center-code-agents
last_updated: '2026-12-01'
---

> Documentation index: https://coralogix.com/docs/llms.txt

# 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:

1. You configure the integration in Coralogix and launch one AWS CloudFormation stack in the AWS account and Region of your Kiro profile.
2. The stack creates a secret in AWS Secrets Manager that holds the Coralogix endpoint and your Send-Your-Data API key.
3. 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-1` or `eu-central-1` Region. 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](https://kiro.dev/docs/enterprise/iam/).
* A Coralogix [Send-Your-Data API key](https://coralogix.com/docs/user-guides/account-management/api-keys/send-your-data-api-key.md).
* The Coralogix `INTEGRATIONS:READCONFIG` permission to view integrations and `INTEGRATIONS:DEPLOY` permission to create or update them. The Data Admin and Platform Admin roles include deployment permission.

## Set up the integration

1. In Coralogix, select **Data Flow**, then **Integrations**.

2. Search for and select **Kiro**.

3. Select **Connect**, then **Add New**.

4. Read **Before you start**, then select **Next**.

5. 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-1` or `eu-central-1`. The stack is created in this Region.          |

6. Select **Next**.

### Launch the AWS CloudFormation stack

1. In **Launch the AWS stack**, select **Launch stack**. The AWS CloudFormation console opens with all parameters filled in.
2. Sign in to the AWS account of your Kiro profile, if you are not signed in.
3. Select **Create stack**.
4. When the stack status is `CREATE_COMPLETE`, open the **Outputs** tab and copy the value of `DailyMetricsSecretArn`.

[![AWS CloudFormation stack Outputs tab with the DailyMetricsSecretArn secret ARN](https://coralogix.com/docs/assets/images/stack-outputs-secret-arn-1a99b842c0634bc82a5f01eb3df5fef7.webp)](https://coralogix.com/docs/assets/images/stack-outputs-secret-arn-1a99b842c0634bc82a5f01eb3df5fef7.webp)

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:

1. In the navigation pane, select **Controls**, then select your policy.
2. Select **Edit**.
3. On the **Rules and settings** tab, go to **Privacy and telemetry**, and select **Kiro user activity reports**.
4. Select the **OpenTelemetry metrics** tab.
5. In **Connection**, select **Turn on**.
6. For **OpenTelemetry credentials**, paste the `DailyMetricsSecretArn` value from the stack outputs. The secret name is `coralogix/<integration name>/daily-metrics`.
7. For **OpenTelemetry protocol**, select **gRPC**.
8. For **OpenTelemetry temporality**, keep **Delta**.
9. Select **Save to draft**.
10. In **Test connection**, test the connection. Kiro sends one test record to Coralogix.
11. Select **Publish**, then confirm.

[![Kiro profile policy, Privacy and telemetry, with Export to OpenTelemetry on, the Coralogix secret, gRPC, and Delta](https://coralogix.com/docs/assets/images/kiro-policy-opentelemetry-metrics-7fab85803ee7bfc32a288252df73b42d.webp)](https://coralogix.com/docs/assets/images/kiro-policy-opentelemetry-metrics-7fab85803ee7bfc32a288252df73b42d.webp)

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](https://kiro.dev/docs/enterprise/monitor-and-track/user-activity/turn-on/).

## 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.

**Show usage and credit metrics**

| 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.                                   |

**Show tool call metrics**

| 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](https://kiro.dev/docs/enterprise/monitor-and-track/user-activity/opentelemetry/) 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 `date` label 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`, or `kiro_account_id`.

## Validate the integration

### Validate metrics

After you test the connection in Kiro, query the test record in **Metrics Explorer**:

```promql
kiro_test_connection__tests__total
```

After the first daily export, query the credits of the last two days:

```promql
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

1. In the Kiro console, open the **OpenTelemetry metrics** tab of your policy, select **Turn off**, then publish.
2. 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.
3. In Coralogix, delete the integration.

## Related resources

* [Code Agents Intelligence](https://coralogix.com/docs/user-guides/ai/code-agents.md)
* [Kiro user activity documentation](https://kiro.dev/docs/enterprise/monitor-and-track/user-activity/)
* [Kiro OpenTelemetry metrics documentation](https://kiro.dev/docs/enterprise/monitor-and-track/user-activity/opentelemetry/)
