Skip to main content

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​

DataScheduleCoverage
Daily metricsDaily at 00:30 UTCPrevious 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.
  • A Coralogix Send-Your-Data API key.
  • 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:

    FieldDescription
    Integration NameName of the integration. Coralogix also uses it in the stack name and the secret name. The default is kiro.
    API KeyYour Send-Your-Data API key. Select an existing key or select Create a New Key.
    Kiro profile regionThe 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

Shows the DailyMetricsSecretArn output that you select in Kiro.

The stack, named coralogix-<integration name>, creates these resources:

ResourceDescription
AWS KMS keyEncrypts 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-metricsHolds the Coralogix OpenTelemetry endpoint and the authorization header with your API key.
Secret resource policyLets 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

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.

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​

LabelDescription
kiro_user_idThe user ID from AWS IAM Identity Center or from your external identity provider.
kiro_user_emailThe email address of the user, when Kiro finds it.
kiro_client_typeThe Kiro client, for example KIRO_IDE or KIRO_CLI.
kiro_user_newWhether the user activated their subscription on that day.
dateThe activity date in UTC.
kiro_subscription_tier, kiro_usage_limit, kiro_overage_enabled, kiro_overage_capThe 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_versionThe breakdown value, on the breakdown metrics only.
kiro_profile_id, kiro_profile_arn, kiro_account_idThe Kiro profile and its AWS account.
service_nameAlways 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:

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​

SymptomCauseWhat 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.
Last updated on