Skip to content

Pack CloudWatch metrics into far fewer PutMetricData calls - #1816

Merged
akidambisrinivasan merged 1 commit into
awslabs:masterfrom
akidambisrinivasan:master
Sep 23, 2026
Merged

akidambisrinivasan merged 1 commit into
awslabs:masterfrom
akidambisrinivasan:master

Conversation

@akidambisrinivasan

Copy link
Copy Markdown
Contributor

The CW publisher flushes requests of at most 20 datums per PutMetricData API. This API now accepts upto a 1000 datums, or 1MB, per request. On busy consumers with many shards that meant a flood of tiny API calls, each one separately billed and each one adding to the throttling pressure.

Change the default trigger from 200 to 1000 and lift the 20 datum per API to 1000 or 1MB. The result is up to a fiftyfold reduction in PutMetricData calls for the same volume of metrics.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The CW publisher flushes requests of at most 20 datums per PutMetricData
API. This API now accepts upto a 1000 datums, or 1MB, per request.
On busy consumers with many shards that meant a flood of tiny API calls,
each one separately billed and each one adding to the throttling
pressure.

Change the default trigger from 200 to 1000 and lift the 20 datum
per API to 1000 or 1MB. The result is up to a fiftyfold reduction
in PutMetricData calls for the same volume of metrics.
@akidambisrinivasan
akidambisrinivasan merged commit 6ffda28 into awslabs:master Sep 23, 2026
5 of 6 checks passed

This branch had an error being deployed

1 failed deployment
manual-approval β€” 3b4ad102 Deployed Sep 18, 2026 by akidambisrinivasan via wait-for-approval #317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants