AWS Adds Organization-Wide Usage Analytics for Quick and Kiro
Summary:AWS has introduced an account-level analytics layer for Quick and Kiro. Its open-source setup scripts route CloudWatch Logs-delivered usage events into a customer-owned S3 bucket, model them through AWS Glue and Athena, and materialize four SPICE datasets covering chat activity, agent hours, feedback, and index usage. Companion scripts add Kiro telemetry and IAM Identity Center organizational attributes, while starter dashboards and natural-language queries make the results accessible to adminis
Architecture: From Raw Usage Events to Queryable Datasets
AWS provides an auditable analytics path for Quick and Kiro:
Quick vended logs → CloudWatch Logs delivery → customer-owned S3 → AWS Glue / Amazon Athena → four SPICE datasets
The pipeline has two planes. The control plane consists of AWS-provided open-source setup scripts that provision S3 buckets, CloudWatch Logs deliveries, Glue tables, an Athena workgroup, IAM policies, and Quick resources. The data plane receives Quick usage events, keeps the raw logs inside the customer account, and uses Athena to query the data before loading it into the interactive SPICE layer.
Collection starts when setup completes. By default, each dataset receives a full refresh at 02:00 UTC, with an on-demand Refresh now option. The script must run separately in every AWS Region included in the report, so a global rollup also requires consistent time boundaries, identity mappings, and regional definitions.
Four Datasets and Their Metric Semantics
| Dataset | Raw grain and primary use | Important metric caveat |
| --- | --- | --- |
| Chat activity | Message counts, active users, and usage over time | One chat record equals one message; users must be calculated with count(DISTINCT user_arn) |
| Agent hours | Agent time grouped by service, client, or other dimensions | Agent hours can support allocation, but they are not equivalent to business value or completed tasks |
| Feedback | Rating counts and negative-feedback share | The denominator for Not Useful is all ratings in the period, not all chats |
| Index usage | Index utilization and storage analysis | The post does not enumerate every field, so schema and capacity units should be checked before deployment |
Natural-language querying lowers the barrier to analysis, but it does not replace metric contracts. A production implementation should explicitly define active users as count(DISTINCT user_arn), calculate the Not Useful rate as negative ratings divided by all ratings, and aggregate agent_hours over an explicit service, client, team, and time window.
If chat records, timestamps, and dashboard filters use different boundaries, the results will diverge. Each common question should therefore have a fixed start and end time, timezone, deduplication key, and denominator. Keeping an Athena SQL query as the reconciliation source is more reliable than storing only the natural-language response.
Adding Kiro and Organizational Context
A companion script imports Kiro reports and creates the AWS Quick and Kiro usage dashboard. A Kiro report contains one row for each user, day, and client. Monthly active-user reporting must therefore deduplicate identities instead of counting rows.
The organizational-context script relies on division, department, and cost-center fields in AWS IAM Identity Center. It creates an identity table and copies of the usage datasets enriched with org_ attributes. Usage data refreshes with the base datasets, but the organizational attributes change only after the script is rerun. This separation works well when organizational master data is stable; it can become stale when teams reorganize frequently.
Identity quality is the critical constraint. A user represented in two identity stores can appear as two rows, while records with an empty user_id cannot be joined. Teams should normalize and deduplicate identities before aggregating agent hours, otherwise raw-row sums will overstate usage.
Access and Privacy: Customer Ownership Does Not Fully Close the Data Boundary
The user_arn in usage logs contains a Quick username, often an email address, and therefore constitutes personally identifiable data. AWS maintains two separate access planes. A principal with IAM access to the S3 bucket can read the records, while a Quick dataset is available only to its owner until it is shared. Once shared in Quick, viewers can see individual activity.
The setup script can apply an account-wide Deny default, but this may simultaneously block current access to S3, Athena, Redshift, and RDS data for users and administrators. Organizations should map existing dependencies, retain an emergency rollback path, and test three roles separately: an unauthorized user, a viewer receiving a Quick share, and an IAM administrator.
A safer production rollout is to begin with least-privilege role groups, audit exports and sharing, and establish governance for cost-center mapping. If the requirement is only team-level allocation, the analytics layer can deduplicate and aggregate before broadening access, reducing the period for which individually identifiable records remain available.
Engineering Trade-offs: Full Refreshes Are Simple but Do Not Scale for Free
Every refresh incurs Athena scans, SPICE capacity, S3 storage, and CloudWatch Logs delivery costs. In the official example, the logs occupy roughly 89 KB per week, the datasets use about 0.3 MB of SPICE capacity, and a daily Athena refresh scans approximately 77 KB. These numbers demonstrate that the pipeline works at a small scale; they do not predict the cost of tens of thousands of users or high-frequency agent workloads.
From a data-engineering perspective, full refresh avoids incremental deduplication and late-arriving-event reconciliation, but the scan workload grows roughly linearly with the bytes processed per cycle, approximately O(B). At larger scale, partitioning, compression, projected columns, and refresh frequency become more important than relying on Athena's pay-per-query pricing alone.
Daily snapshots also introduce up to one refresh cycle of latency. A natural-language answer reflects the currently loaded dataset and should not be treated as a real-time monitoring signal. Workloads that require immediate anomaly detection need a separate streaming metric path or higher-frequency CloudWatch alarms.
What the Official Examples Actually Validate
The official walkthrough reconciles dashboard values against Athena. One reporting period contains 970 messages from 8 distinct users. Another contains 227 ratings, of which 53, or 23.3%, are marked Not Useful. The Kiro user report loads 399 rows.
These checks demonstrate consistent aggregation and show how dashboard results can be reconciled with SQL. They are not model-accuracy or system-performance benchmarks. No multi-tenant figures are provided for scan latency, refresh concurrency, failure recovery, cross-Region cost, or malformed-log handling, so large-scale reliability remains unverified.
Deployment and Verification
- Complete a security review: Define retention periods for
user_arn, email addresses, client activity, and organizational fields, then align Quick sharing with S3 IAM policies. - Dry-run every Region: Execute
python3 quick_usage_datasets_setup.py --dry-runin the same Region as the Quick service, then verify the account ID, bucket, retention period, and default access choice. - Validate the full path: Check for
.log.gzfiles underquick-usage-analytics/in S3, triggerRefresh now, and test both authorized and unauthorized dashboard access. - Freeze metric SQL: Maintain Athena queries for messages, active users, feedback rate, and agent hours, with consistent millisecond timestamps, timezones, and reporting windows.
- Refresh organizational mappings deliberately: Rerun
python3 quick_usage_org.pyafter organizational changes and remove duplicate identities created by mismatched identity stores. - Monitor cost and cleanup order: Destroy the Kiro and organizational scripts first, followed by
python3 quick_usage_datasets_setup.py --destroy. The final operation deletes logs and customized dashboards, and deleted logs cannot be recovered. A bucket supplied by the operator is retained, but its delivery statement still requires a separate policy audit.
Capability Boundaries
The solution answers who is using Quick and Kiro, how much they use them, where agent hours are allocated, and whether feedback is negative. It does not prove that agents completed business objectives, replace code-quality or model evaluation, or establish return on investment. Its value is an auditable enterprise observability and cost-allocation layer for agentic AI adoption, not a new foundation model or agent algorithm.
— END —Source: AWS Machine Learning Blog (2026-12-04)
Tags: #AWS Quick #Kiro #Agent Observability #Usage Analytics #IAM Identity Center
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments