SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
AWS Cloudwatch
Felipe Almeida
Rio Cloud Computing Meetup October / 2016
Monitoring your AWS Services with Metrics
and Alarms
Structure
● Intro
● Usage
● Metrics - Builtin
● Metrics - Custom
● Alarms
● Events
● Logs
● Third-party services
● Keep in mind
2
Intro
● CloudWatch is the AWS metric collection service
● Metrics are individual measurements of some quantity of interest,
at a given point in time:
Examples:
● At 23:45:29 GMT, on 23 February 2016, CPU usage for
instance XPTO was 56%
3
Intro
● Nearly all AWS services can be monitored using CloudWatch
● Metrics provide visibility into your applications
● They enable you to make informed decisions such as
○ Whether to downscale a machine that’s not being used too
much (save $$)
○ Whether to scale up a machine that’s close to full capacity
(avoid failures)
○ Decide what caused an application to fail (debug)
4
Usage
● You can use CloudWatch in multiple ways:
○ Using the AWS Console
○ Via other services that have monitoring functionality
○ Using the CloudWatch API through the AWS SDK
5
Usage - Via other services
● Via other services
○ Nearly all services have a monitoring or metrics tab
6EMR
Usage - Via other services
7Elastic Beanstalk
Usage - Via other services
8DynamoDB Table
Usage - Via other services
● When you open the monitoring tab for a service, what you’re
looking at are actually CloudWatch Metrics:
9
Monitoring Tab for an
Elastic Beanstalk
Environment uses
CloudWatch Metrics
Usage - Console
● Via cloudwatch itself (on the console)
10
Usage - Console
● You can build a Dashboard with metrics you choose
11
Usage - API
● CloudWatch (like most AWS Services) can also be used
programatically
○ I.e. it has an API that you can use via the AWS SDK (library for
Java, .NET, Python, etc)
12
Metrics - Builtin
● Services usually have a set of builtin metrics
○ These metrics are collected by default
13
Metrics - Builtin
● For example, the following metrics (not exhaustive list) are
collected by default for EC2 Instances:
○ CPUUtilization (percent)
○ DiskReadBytes (bytes)
○ DiskWriteBytes (bytes)
○ NetworkIn (bytes)
○ NetworkOut (bytes)
14
Metrics - Custom
● You can also use CloudWatch for your own metrics.
● You can then do anything you can for regular (builtin) metrics,
such as:
○ View them on the AWS console
○ Create Dashboards for them
○ Set up alerts
15
Metrics - Custom
● For some types of custom metrics, there are community-provided
scripts to help you publish them to CloudWatch, such as:
○ Memory utilization for EC2 Instances
○ Swap Utilization for EC2 Instances
○ Disk Space Usage for EC2 Instances
● These metrics are controlled by the O.S. and therefore cannot be
accessed automatically by AWS.
16
Alarms
● You can also create alarms for any individual metric on
CloudWatch, which are triggered if the criteria you have defined are
met
● For example, you can have AWS send you an e-mail if
FreeStorageSpace metric for a ElasticSearch cluster you have
becomes lower than 10GB.
17
Alarms
● In addition to notifying you when something happens, you can also
configure AutoScaling Actions to be taken if some criteria are
met:
○ For example, if the CPUUtilization metric reaches 90% for
all machines in a AutoScaling Group, add extra instances to
that environment
18
Events
● CloudWatch Events are a new addition in CloudWatch
● They enable you to execute custom actions in response to State
Changes such as
○ An EC2 instance has been started
○ An EC2 instance has been terminated
● Custom actions include running a Lambda Function, publishing the
event to Kinesis, etc.
19
Logs
● CloudWatch Logs refers to Agents you can install on your
instances to have them send application logs to CloudWatch
● You can filter your logs and set up Alarms when certain criteria are
met, such as:
○ There have been more than 10 Errors in Apache in the last
minute
○ There have been 5 log messages matching
“IllegalArgumentException” in the last hour
20
Related Services (Third-Party)
● There are tons of third-party services that build on top of or
otherwise leverage CloudWatch metrics, such as:
○ SignalFX (extends and sends custom metrics to CloudWatch)
○ AppDynamics (sends all sorts of low-level and
application-level metrics to CloudWatch and displays them in
an unified manner; also provides event correlation)
○ NewRelic (sends data to CLoudWatch)
○ Grafana (uses CloudWatch as a Data source)
○ Logstash (you can use CloudWatch as an output)
○ Nagios (consumes CloudWatch metrics)
21
Keep in mind
● Metrics last 2 weeks by default
● Metrics are per-region
● Some services (e.g. Elastic BeanStalk) have extra metrics that
need to be explicitly enabled before they can be used.
● CloudWatch can also be used to monitor AWS Costs (Billing), even
though it’s not a service per se
22
Keep in mind
● In order to publish custom Amazon CloudWatch metrics, the
instances in your environment need permission to use
CloudWatch (see your instance profile for more information).
● CloudWatch is not free so you may want to track only relevant
metrics
○ In addition, if you use CloudWatch via the AWS SDK, try to
collect high-level metrics to keep cost down
■ E.g. track BeanStalk metrics rather than metrics for
individual instances
23
Links
● Monitoring Scripts for Linux EC2 Instances
● All Builtin Metrics for all supported AWS services
● AWS CloudWatch Pricing
24

More Related Content

PPTX
AWS Cloud Watch
PDF
Aws cloud watch
PDF
AWS RDS
PPTX
Infrastructure-as-Code (IaC) using Terraform
PPTX
App Modernization with Microsoft Azure
ODP
Ms sql-server
PPTX
Amazon SQS overview
PDF
HelloCloud.io - Introduction to IaC & Terraform
AWS Cloud Watch
Aws cloud watch
AWS RDS
Infrastructure-as-Code (IaC) using Terraform
App Modernization with Microsoft Azure
Ms sql-server
Amazon SQS overview
HelloCloud.io - Introduction to IaC & Terraform

What's hot (20)

PDF
Cloudwatch: Monitoring your Services with Metrics and Alarms
PPTX
AWS solution Architect Associate study material
PPTX
Aws overview (Amazon Web Services)
PDF
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
PPTX
PDF
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
PPTX
AWS Monitoring & Logging
PDF
AWS Lambda
PPTX
AWS basics
PDF
AWS 101: Introduction to AWS
PPTX
Aws overview
PDF
Cloud Migration 과 Modernization 을 위한 30가지 아이디어-박기흥, AWS Migrations Specialist...
PPTX
What is AWS?
PPTX
AWS CloudWatch
PPTX
PPTX
Azure Cloud PPT
PPTX
AWS EC2 Fundametals
PDF
Introduction to AWS (Amazon Web Services)
PPTX
AWS Route53 Fundamentals
Cloudwatch: Monitoring your Services with Metrics and Alarms
AWS solution Architect Associate study material
Aws overview (Amazon Web Services)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
AWS Monitoring & Logging
AWS Lambda
AWS basics
AWS 101: Introduction to AWS
Aws overview
Cloud Migration 과 Modernization 을 위한 30가지 아이디어-박기흥, AWS Migrations Specialist...
What is AWS?
AWS CloudWatch
Azure Cloud PPT
AWS EC2 Fundametals
Introduction to AWS (Amazon Web Services)
AWS Route53 Fundamentals
Ad

Viewers also liked (15)

PPTX
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
PDF
Deployment and Management on AWS:
 A Deep Dive on Options and Tools
PPTX
Cloud watchingwithcloudwatch
PPTX
Cloudreach Voices AWS CloudWatch and Smart Monitoring
PDF
Tackling a 1 billion member social network
PDF
Aws cost optimization: lessons learned, strategies, tips and tools
PDF
CloudWatch Custom Metrics
PDF
Modern Monitoring - devops roadtrip
PPTX
Site24x7 PHP Monitoring for DevOps
PPTX
Cloud watch
PDF
Manage Security & Compliance of Your AWS Account using CloudTrail
PDF
Monitoring 改造計畫:流程觀點
PDF
Elasticsearch for Data Analytics
PDF
Online Machine Learning: introduction and examples
PDF
AWS Lambda from the Trenches
Using AWS CloudWatch Custom Metrics and EC2 Auto Scaling -VSocial Infrastructure
Deployment and Management on AWS:
 A Deep Dive on Options and Tools
Cloud watchingwithcloudwatch
Cloudreach Voices AWS CloudWatch and Smart Monitoring
Tackling a 1 billion member social network
Aws cost optimization: lessons learned, strategies, tips and tools
CloudWatch Custom Metrics
Modern Monitoring - devops roadtrip
Site24x7 PHP Monitoring for DevOps
Cloud watch
Manage Security & Compliance of Your AWS Account using CloudTrail
Monitoring 改造計畫:流程觀點
Elasticsearch for Data Analytics
Online Machine Learning: introduction and examples
AWS Lambda from the Trenches
Ad

Similar to Cloudwatch: Monitoring your AWS services with Metrics and Alarms (20)

PDF
Application & Account Monitoring in AWS
PPTX
re:Invent re:Peat
PPTX
004 - Logging in the Cloud -- hide01.ir.pptx
PDF
Build a custom metrics on aws cloud
PDF
Kks sre book_ch10
PPT
Cloud Computing- Easy to use and Affordable
PDF
Container world 2019 Canary Release
PDF
How to Develop and Operate Cloud First Data Platforms
PPTX
CloudHesive x Datadog Multi Generational Observability
PDF
How to Develop and Operate Cloud Native Data Platforms and Applications
PDF
Scaling Monitoring At Databricks From Prometheus to M3
PDF
Amazon WorkSpaces-Virtual Desktops in Cloud
PPTX
Ghost Environment
PDF
Avanttic tech dates - de la monitorización a la 'observabilidad'
PDF
Webinar Monitoring in era of cloud computing
PDF
Sprint 73
PDF
Adaptive Scaling of Microgateways on Kubernetes
PDF
OSMC 2017 | Monitoring Challenges in a World of Automation by Anthony Goddard
PDF
NetflixOSS Meetup season 3 episode 1
PDF
Citi Tech Talk: Monitoring and Performance
Application & Account Monitoring in AWS
re:Invent re:Peat
004 - Logging in the Cloud -- hide01.ir.pptx
Build a custom metrics on aws cloud
Kks sre book_ch10
Cloud Computing- Easy to use and Affordable
Container world 2019 Canary Release
How to Develop and Operate Cloud First Data Platforms
CloudHesive x Datadog Multi Generational Observability
How to Develop and Operate Cloud Native Data Platforms and Applications
Scaling Monitoring At Databricks From Prometheus to M3
Amazon WorkSpaces-Virtual Desktops in Cloud
Ghost Environment
Avanttic tech dates - de la monitorización a la 'observabilidad'
Webinar Monitoring in era of cloud computing
Sprint 73
Adaptive Scaling of Microgateways on Kubernetes
OSMC 2017 | Monitoring Challenges in a World of Automation by Anthony Goddard
NetflixOSS Meetup season 3 episode 1
Citi Tech Talk: Monitoring and Performance

More from Felipe (15)

PDF
Aula rotulação automática - Automatic tagging
PDF
First steps with Keras 2: A tutorial with Examples
PDF
Word embeddings introdução, motivação e exemplos
PDF
Cloud Certifications - Overview
PDF
Exemplos de uso de apache spark usando aws elastic map reduce
PDF
Pré processamento de grandes dados com Apache Spark
PDF
Hadoop MapReduce and Apache Spark on EMR: comparing performance for distribut...
PDF
Boas práticas no desenvolvimento de software
PDF
Rachinations
PDF
Ausgewählte preußische Tugenden
PDF
Short intro to scala and the play framework
PDF
Conceitos e exemplos em versionamento de código
PDF
DevOps Series: Extending vagrant with Puppet for configuration management
PDF
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
PDF
D3.js 30-minute intro
Aula rotulação automática - Automatic tagging
First steps with Keras 2: A tutorial with Examples
Word embeddings introdução, motivação e exemplos
Cloud Certifications - Overview
Exemplos de uso de apache spark usando aws elastic map reduce
Pré processamento de grandes dados com Apache Spark
Hadoop MapReduce and Apache Spark on EMR: comparing performance for distribut...
Boas práticas no desenvolvimento de software
Rachinations
Ausgewählte preußische Tugenden
Short intro to scala and the play framework
Conceitos e exemplos em versionamento de código
DevOps Series: Extending vagrant with Puppet for configuration management
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
D3.js 30-minute intro

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
KodekX | Application Modernization Development
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced IT Governance
PDF
Empathic Computing: Creating Shared Understanding
PDF
Modernizing your data center with Dell and AMD
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Cloud computing and distributed systems.
NewMind AI Monthly Chronicles - July 2025
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
KodekX | Application Modernization Development
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced IT Governance
Empathic Computing: Creating Shared Understanding
Modernizing your data center with Dell and AMD
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25 Week I
GamePlan Trading System Review: Professional Trader's Honest Take
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Cloudwatch: Monitoring your AWS services with Metrics and Alarms

  • 1. AWS Cloudwatch Felipe Almeida Rio Cloud Computing Meetup October / 2016 Monitoring your AWS Services with Metrics and Alarms
  • 2. Structure ● Intro ● Usage ● Metrics - Builtin ● Metrics - Custom ● Alarms ● Events ● Logs ● Third-party services ● Keep in mind 2
  • 3. Intro ● CloudWatch is the AWS metric collection service ● Metrics are individual measurements of some quantity of interest, at a given point in time: Examples: ● At 23:45:29 GMT, on 23 February 2016, CPU usage for instance XPTO was 56% 3
  • 4. Intro ● Nearly all AWS services can be monitored using CloudWatch ● Metrics provide visibility into your applications ● They enable you to make informed decisions such as ○ Whether to downscale a machine that’s not being used too much (save $$) ○ Whether to scale up a machine that’s close to full capacity (avoid failures) ○ Decide what caused an application to fail (debug) 4
  • 5. Usage ● You can use CloudWatch in multiple ways: ○ Using the AWS Console ○ Via other services that have monitoring functionality ○ Using the CloudWatch API through the AWS SDK 5
  • 6. Usage - Via other services ● Via other services ○ Nearly all services have a monitoring or metrics tab 6EMR
  • 7. Usage - Via other services 7Elastic Beanstalk
  • 8. Usage - Via other services 8DynamoDB Table
  • 9. Usage - Via other services ● When you open the monitoring tab for a service, what you’re looking at are actually CloudWatch Metrics: 9 Monitoring Tab for an Elastic Beanstalk Environment uses CloudWatch Metrics
  • 10. Usage - Console ● Via cloudwatch itself (on the console) 10
  • 11. Usage - Console ● You can build a Dashboard with metrics you choose 11
  • 12. Usage - API ● CloudWatch (like most AWS Services) can also be used programatically ○ I.e. it has an API that you can use via the AWS SDK (library for Java, .NET, Python, etc) 12
  • 13. Metrics - Builtin ● Services usually have a set of builtin metrics ○ These metrics are collected by default 13
  • 14. Metrics - Builtin ● For example, the following metrics (not exhaustive list) are collected by default for EC2 Instances: ○ CPUUtilization (percent) ○ DiskReadBytes (bytes) ○ DiskWriteBytes (bytes) ○ NetworkIn (bytes) ○ NetworkOut (bytes) 14
  • 15. Metrics - Custom ● You can also use CloudWatch for your own metrics. ● You can then do anything you can for regular (builtin) metrics, such as: ○ View them on the AWS console ○ Create Dashboards for them ○ Set up alerts 15
  • 16. Metrics - Custom ● For some types of custom metrics, there are community-provided scripts to help you publish them to CloudWatch, such as: ○ Memory utilization for EC2 Instances ○ Swap Utilization for EC2 Instances ○ Disk Space Usage for EC2 Instances ● These metrics are controlled by the O.S. and therefore cannot be accessed automatically by AWS. 16
  • 17. Alarms ● You can also create alarms for any individual metric on CloudWatch, which are triggered if the criteria you have defined are met ● For example, you can have AWS send you an e-mail if FreeStorageSpace metric for a ElasticSearch cluster you have becomes lower than 10GB. 17
  • 18. Alarms ● In addition to notifying you when something happens, you can also configure AutoScaling Actions to be taken if some criteria are met: ○ For example, if the CPUUtilization metric reaches 90% for all machines in a AutoScaling Group, add extra instances to that environment 18
  • 19. Events ● CloudWatch Events are a new addition in CloudWatch ● They enable you to execute custom actions in response to State Changes such as ○ An EC2 instance has been started ○ An EC2 instance has been terminated ● Custom actions include running a Lambda Function, publishing the event to Kinesis, etc. 19
  • 20. Logs ● CloudWatch Logs refers to Agents you can install on your instances to have them send application logs to CloudWatch ● You can filter your logs and set up Alarms when certain criteria are met, such as: ○ There have been more than 10 Errors in Apache in the last minute ○ There have been 5 log messages matching “IllegalArgumentException” in the last hour 20
  • 21. Related Services (Third-Party) ● There are tons of third-party services that build on top of or otherwise leverage CloudWatch metrics, such as: ○ SignalFX (extends and sends custom metrics to CloudWatch) ○ AppDynamics (sends all sorts of low-level and application-level metrics to CloudWatch and displays them in an unified manner; also provides event correlation) ○ NewRelic (sends data to CLoudWatch) ○ Grafana (uses CloudWatch as a Data source) ○ Logstash (you can use CloudWatch as an output) ○ Nagios (consumes CloudWatch metrics) 21
  • 22. Keep in mind ● Metrics last 2 weeks by default ● Metrics are per-region ● Some services (e.g. Elastic BeanStalk) have extra metrics that need to be explicitly enabled before they can be used. ● CloudWatch can also be used to monitor AWS Costs (Billing), even though it’s not a service per se 22
  • 23. Keep in mind ● In order to publish custom Amazon CloudWatch metrics, the instances in your environment need permission to use CloudWatch (see your instance profile for more information). ● CloudWatch is not free so you may want to track only relevant metrics ○ In addition, if you use CloudWatch via the AWS SDK, try to collect high-level metrics to keep cost down ■ E.g. track BeanStalk metrics rather than metrics for individual instances 23
  • 24. Links ● Monitoring Scripts for Linux EC2 Instances ● All Builtin Metrics for all supported AWS services ● AWS CloudWatch Pricing 24