[{"data":1,"prerenderedAt":30},["ShallowReactive",2],{"snippet-cloudwatch-insight-overprovisioned-memory-for-lambda":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":18,"resources":17,"services":19,"snippets":21,"stem":25,"tags":26,"type":28,"__hash__":29},"snippets\u002Fsnippets\u002Fcloudwatch-insight-overprovisioned-memory-for-lambda.json","Determine the amount of overprovisioned memory.",[7],"content\u002Fcontributors\u002Fdavid-boyne.json","Show the amount of overprovisioned memory for Lambda","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Fcloudwatch-insight-overprovisioned-memory-for-lambda",{"headline":14,"text":15},"How it works",[16],"Cloudwatch Log Insights snippet that shows overprovisioned memory for Lambda",null,{},[20],"lambda-event-functions",[22],{"language":23,"code":24},"css","filter @type = \"REPORT\"\n    | stats max(@memorySize \u002F 1000 \u002F 1000) as provisonedMemoryMB,\n        min(@maxMemoryUsed \u002F 1000 \u002F 1000) as smallestMemoryRequestMB,\n        avg(@maxMemoryUsed \u002F 1000 \u002F 1000) as avgMemoryUsedMB,\n        max(@maxMemoryUsed \u002F 1000 \u002F 1000) as maxMemoryUsedMB,\n        provisonedMemoryMB - maxMemoryUsedMB as overProvisionedMB","snippets\u002Fcloudwatch-insight-overprovisioned-memory-for-lambda",[27],"Memory","CloudWatch Logs Insights","2w0-X9wqqFkz184zFtMlqUiaIV6l_AxSx0cqCBm0yXY",1792578864209]