# Collecting CPU and memory metrics for AWS Lambda MicroVMs

DevFeed: [Collecting CPU and memory metrics for AWS Lambda MicroVMs](<https://devfeed.tech/articles/collecting-cpu-and-memory-metrics-for-aws-lambda-microvms-4660.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/compute/collecting-cpu-and-memory-metrics-for-aws-lambda-microvms/>)

Author: Eric Heinz

Published: 2026-08-14T11:11:55Z

Content type: tutorial

Language: en

Sources: [AWS Compute Blog](<https://devfeed.tech/sources/aws-compute-blog.md>)

Topics: [telemetry](<https://devfeed.tech/topics/telemetry.md>), [Processes](<https://devfeed.tech/topics/processes.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent](<https://devfeed.tech/tags/agent.md>), [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [health](<https://devfeed.tech/tags/health.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [json](<https://devfeed.tech/tags/json.md>), [latency](<https://devfeed.tech/tags/latency.md>), [memory](<https://devfeed.tech/tags/memory.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [os](<https://devfeed.tech/tags/os.md>), [process](<https://devfeed.tech/tags/process.md>), [production](<https://devfeed.tech/tags/production.md>), [startup](<https://devfeed.tech/tags/startup.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

A tutorial on collecting CPU and memory metrics from AWS Lambda MicroVMs with the Amazon CloudWatch Agent. It explains configuring Telegraf and OpenTelemetry Collector files to emit metrics with a custom dimension from an environment variable.

## Source excerpt

Learn how to collect CPU and memory metrics from AWS Lambda MicroVMs using the CloudWatch Agent. Configure telegraf and OTel to monitor and right-size your workloads.