Skip to content

Add Memory Available metric to memory monitoring#24

Closed
crohr wants to merge 1 commit intomainfrom
feature/22-memory-available-metric
Closed

Add Memory Available metric to memory monitoring#24
crohr wants to merge 1 commit intomainfrom
feature/22-memory-available-metric

Conversation

@crohr
Copy link
Copy Markdown
Contributor

@crohr crohr commented Jan 29, 2026

Summary

  • Adds mem_available_percent metric alongside the existing mem_used_percent when memory monitoring is enabled
  • This provides a more accurate view of available memory that accounts for shared memory like tmpfs, which was skewing data when only using "Memory Used"

Changes

  • Added new available_percent measurement to the memory metric type in GetMeasurements()
  • The CloudWatch agent will now collect both mem_used_percent and mem_available_percent
  • Both metrics will be displayed in the metrics summary with ASCII charts

Test plan

  • Deploy to a test runner with metrics: memory enabled
  • Verify both "Memory Used" and "Memory Available" charts appear in the post-execution metrics summary
  • Confirm the Memory Available values account for shared memory (tmpfs)

Closes #22

Expose mem_available_percent alongside mem_used_percent to provide a more
accurate view of available memory that accounts for shared memory like tmpfs.

Fixes #22
@crohr crohr closed this Mar 26, 2026
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.

Expose memory available metric

1 participant