Skip to content

feat(bottlecap): generate tmp enhanced metrics#443

Merged
shreyamalpani merged 8 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
shreya.malpani/tmp-enhanced-metrics
Nov 12, 2024
Merged

feat(bottlecap): generate tmp enhanced metrics#443
shreyamalpani merged 8 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
shreya.malpani/tmp-enhanced-metrics

Conversation

@shreyamalpani
Copy link
Copy Markdown
Contributor

@shreyamalpani shreyamalpani commented Nov 11, 2024

What does this PR do?

This PR introduces three new enhanced lambda metrics. These metrics are emitted once per invocation and represent space used and space available in the /tmp directory.

The three new metrics are:

  • aws.lambda.enhanced.tmp_max - max available bytes in /tmp
  • aws.lambda.enhanced.tmp_used - bytes used or reserved in /tmp
  • aws.lambda.enhanced.tmp_free - bytes available in /tmp

Describe how to test/QA changes

Additional Notes

  • tmp_used reflects a peak over the course of the request. Suppose 2000 bytes are written to /tmp, then deleted, then 3000 bytes are written, then deleted. The metric will report 3000.

@shreyamalpani shreyamalpani marked this pull request as ready for review November 11, 2024 18:43
@shreyamalpani shreyamalpani requested a review from a team as a code owner November 11, 2024 18:43
Comment thread bottlecap/Cargo.toml
Comment thread bottlecap/src/bin/bottlecap/main.rs Outdated
Comment thread bottlecap/src/metrics/enhanced/statfs.rs
Comment thread bottlecap/src/lifecycle/invocation/processor.rs Outdated
Comment thread bottlecap/src/bin/bottlecap/main.rs Outdated
Comment thread bottlecap/src/metrics/enhanced/lambda.rs
Comment thread bottlecap/src/metrics/enhanced/lambda.rs
@shreyamalpani shreyamalpani changed the title Generate tmp Enhanced Metrics feat(bottlecap): generate tmp enhanced metrics Nov 11, 2024
Comment thread bottlecap/src/lifecycle/invocation/processor.rs
Comment thread bottlecap/src/lifecycle/invocation/processor.rs Outdated
Comment thread bottlecap/src/metrics/enhanced/lambda.rs
Copy link
Copy Markdown
Contributor

@duncanista duncanista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, but approving in the meantime!

Looks good!

@shreyamalpani shreyamalpani merged commit 1d56bb0 into jordan.gonzalez/bottlecap/universal-instrumentation Nov 12, 2024
@shreyamalpani shreyamalpani deleted the shreya.malpani/tmp-enhanced-metrics branch November 12, 2024 18:16
duncanista pushed a commit that referenced this pull request Nov 15, 2024
* generate tmp enhanced metrics

* fix channel stop signal

* use tokio async task instead of thread

* statfs fix

* fixes

* remove unused import

* rename tmp_chan to tmp_chan_tx
duncanista pushed a commit that referenced this pull request Nov 19, 2024
* generate tmp enhanced metrics

* fix channel stop signal

* use tokio async task instead of thread

* statfs fix

* fixes

* remove unused import

* rename tmp_chan to tmp_chan_tx
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