Skip to content

[SVLS-8002] fix: collect CPU metric offsets on PlatformStart#930

Merged
shreyamalpani merged 2 commits into
mainfrom
shreya.malpani/fix-cpu-util-metrics
Nov 17, 2025
Merged

[SVLS-8002] fix: collect CPU metric offsets on PlatformStart#930
shreyamalpani merged 2 commits into
mainfrom
shreya.malpani/fix-cpu-util-metrics

Conversation

@shreyamalpani

@shreyamalpani shreyamalpani commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

Overview

Collect CPU metric offsets on receiving the PlatformStart instead of the Invoke event to avoid accounting for additional idle time while calculating utilization. Also, guard uptime and idle time to be non-negative for edge-cases.

Maintains collecting network offsets on the Invoke event to match with Lambda Insights.

Testing

Tested with self-monitoring

image

@shreyamalpani
shreyamalpani requested a review from a team as a code owner November 14, 2025 21:34
Comment thread bottlecap/src/metrics/enhanced/lambda.rs
@shreyamalpani
shreyamalpani merged commit 05ca5f8 into main Nov 17, 2025
39 checks passed
@shreyamalpani
shreyamalpani deleted the shreya.malpani/fix-cpu-util-metrics branch November 17, 2025 14:42
lym953 pushed a commit that referenced this pull request Nov 17, 2025
## Overview

Collect CPU metric offsets on receiving the PlatformStart instead of the
Invoke event to avoid accounting for additional idle time while
calculating utilization. Also, guard uptime and idle time to be
non-negative for edge-cases.

Maintains collecting network offsets on the Invoke event to match with
Lambda Insights.

## Testing 

Tested with self-monitoring

<img width="2620" height="904" alt="image"
src="https://github.com/user-attachments/assets/6960e9f3-2f35-40d2-9c49-3560e8ebd295"
/>
litianningdatadog added a commit that referenced this pull request Nov 19, 2025
…930)" (#938)

**Please include Jira ticket in title.**

## Overview

## Testing
lym953 pushed a commit that referenced this pull request Nov 21, 2025
## Overview

Collect CPU metric offsets on receiving the PlatformStart instead of the
Invoke event to avoid accounting for additional idle time while
calculating utilization. Also, guard uptime and idle time to be
non-negative for edge-cases.

Maintains collecting network offsets on the Invoke event to match with
Lambda Insights.

## Testing 

Tested with self-monitoring

<img width="2620" height="904" alt="image"
src="https://github.com/user-attachments/assets/6960e9f3-2f35-40d2-9c49-3560e8ebd295"
/>
lym953 pushed a commit that referenced this pull request Nov 21, 2025
…930)" (#938)

**Please include Jira ticket in title.**

## Overview

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