Midwest | Milwaukee
Monitoring and Observability of
Lambdas with Cloudwatch & Powertools
Edwin Moedano
Senior Cloud Engineer
Caylent
#AWScommunity
#AWScommunity
Edwin Moedano
Senior Cloud Engineer
Caylent
@edm0cha
linkedin.com/in/edwinmoedano
#AWScommunity
Once upon a time at the end of the sprint…
When everything was successfully deployed…
#AWScommunity
AWS EC2
Most of our workloads are normally deployed to a virtual machine
with a framework that has amazing logging tools and instances
are well defined by a so many metrics.
#AWScommunity
But in a Lambda not at all…
AWS Lambda
#AWScommunity
When something fails in a Lambda it can be tricky
to catch at first sight
#AWScommunity
This is not
fi
ne!
Our Session Goals!
#AWScommunity
At the end of this session, we will be able to:
• Understand the importance of Monitoring
and Observability
• Identify how integrate AWS CloudWatch and
Powertools in our lambda applications
Our Agenda for Today
#AWScommunity
01 Introduction
02 Monitoring & Observability
03 Cloudwatch & Powertools
04 Demo Session
05 Summary
Monitoring
#AWScommunity
Monitoring
#AWScommunity
Process of collecting or supervising key metrics about performance,
availability or state of any application to determine health in real-time like:
Number of
invocations
Errors and
exceptions
Execution time Memory usage
• Provide safety and quality standards by supervising
and measuring our workloads
• Identify performance or availability issues before
they affect end-users
• Offers insights about performance and helps meet
established availability objectives.
#AWScommunity
Importance Of Monitoring
Observability
#AWScommunity
#AWScommunity
Metrics Structured Logs Traces
Process of analyze all collected data produced by a system to
understand the behavior of some issues and the possible causes
with the help of these three pillars:
Observability
• Understand a system from the outside letting us ask
questions without knowing its inner workings.
• Allows us to easily troubleshoot any part of our
system.
• Helps us answer the most critical question, “Why is
this happening?”
#AWScommunity
Importance Of Observability
AWS Monitoring Tools
#AWScommunity
CloudWatch X-Ray Managed Grafana Managed Prometheus
Observability of AWS
Resources and
applications
Distributed tracing across
multiple systems
Scalable data
visualization for metrics
Highly available
monitoring for
containers
Cloudwatch & Powertools
#AWScommunity
Cloudwatch
#AWScommunity
CloudWatch
Metrics
Events
Dashboard Logs
Alarm
Agent
Powertools – Structured Logs
#AWScommunity
Powertools – Structured Logs
#AWScommunity
Powertools – Metrics
#AWScommunity
Powertools – Metrics
#AWScommunity
Demo Session
#AWScommunity
Demo Scenario
#AWScommunity
Prerequisites
#AWScommunity
Terraform 1.8 AWS Account Free Tier
#AWScommunity
https://qrto.org/ytXv9H
• Importance of Monitoring and Observability
• How to use and create structured logs in Cloudwatch
• Integrate custom metrics into our lambdas, segment by
namespace and dimensions
• Create a Dashboard with structured logs and metrics
What we learned
Edwin Moedano
@edm0cha
linkedin.com/in/edwinmoedano
@edm0cha
@edm0cha
Thank you!

Edwin Moedano Monitoring and Observability of Lambdas with Cloudwatch and Powertools