Created
November 4, 2021 12:54
-
-
Save brianfoody/dcee9a3ed48a4a7aa68ddad75cf6326b to your computer and use it in GitHub Desktop.
Cloudwatch Insights
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get memory stats and see if any are overprovisioned | |
filter @type = "REPORT" | |
| stats max(@memorySize / 1000 / 1000) as provisonedMemoryMB, | |
min(@maxMemoryUsed / 1000 / 1000) as smallestMemoryRequestMB, | |
avg(@maxMemoryUsed / 1000 / 1000) as avgMemoryUsedMB, | |
max(@maxMemoryUsed / 1000 / 1000) as maxMemoryUsedMB, | |
provisonedMemoryMB - maxMemoryUsedMB as overProvisionedMB | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment