SlideShare a Scribd company logo
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 1
Training Course
Amazon Web Service
Day Content Lab
Day 1 System Operations on AWS
Day 2 Computing on AWS X
Day 3 Networking on AWS X
Day 4 Storage in AWS (EBS, EFS, Instance Store) X
Day 5 Elastic Load Balancing & Auto Scaling Group X
Day 6 Storage S3 in AWS X
Day 7 Route 53 X
Day 8 RDS, Aurora, ElastiCache X
Day 9 CloudWatch X
Author: Bui Quang Lam
Phone/Zalo: +84.0365.635.598
Mail: buiquanglam185@gmail.com
 Goal: Understanding Monitoring in AWS
 CloudWatch
 CloudTrail
 AWS Config
Lab: Create and configuring Monitoring
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 2
Module 9: CloudWatch
AWS CloudWatch Metrics
• CloudWatch provides metrics for every services in AWS
• Metric is a variable to monitor (CPUUtilization, NetworkIn…)
• Metrics belong to namespaces
• Dimension is an attribute of a metric (instance id, environment, etc…)
• Up to 10 dimensions per metric
• Metrics have timestamps
• Can create CloudWatch dashboards of metrics
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 3
Module 9: CloudWatch
AWS CloudWatch EC2 Detailed monitoring
• EC2 instance metrics have metrics “every 5 minutes”
• With detailed monitoring (for a cost), you get data “every 1 minute”
• Use detailed monitoring if you want to more promt scale your ASG!
• The AWS Free Tier allows us to have 10 detailed monitoring metric
• Note: EC2 Memory usage is by default not pushed (must be pushed
from inside the instance as a custom metric)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 4
Module 9: CloudWatch
AWS CloudWatch Custom Metrics
• Possibility to define and send your own custom metrics to CloudWatch
• Ability to use dimensions (attiributes) to segment metrics
• Instance.id
• Environment.name
• Metric resolution (StorageResolution API parameter – two possible value)
• Standard: 1 minute (60 seconds)
• High Resolution: 1 second – Higher cost
• Use API call PutMetricData
• Use exponential back off in case of throttle errors
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 5
Module 9: CloudWatch
CloudWatch Dashboards
• Great way to setup dashboards for quick access to keys metrics
• Dashboards are global
• Dashboards can include graphs from different regions
• You can change the time zone & time range of the dashboards
• You can setup automatic refresh (10s, 1m, 2m, 5m, 15m)
• Pricing
• 3 dashboards (up to 50 metrics) for free
• $3/dashboard/month afterwards
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 6
Module 9: CloudWatch
AWS CloudWatch Logs
• Applications can send logs to CloudWatch using the SDK
• CloudWatch can collect log from
• Elastic Beanstalk: collection of logs from application
• EC2: collection from containers
• AWS Lambda: collection from function logs
• VPC Flow Logs: VPC specific logs
• API Gateway
• CloudTrail based on filter
• CloudWatch Log agents: for example on EC2 machines
• Route53: Log DNS queries
• CloudWatch logs can go to: Batch exporter to S3 or Stream to
ElasticSearch
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 7
Module 9: CloudWatch
AWS CloudWatch Logs
• Logs storage architecture
• Log groups: arbitrary name, usually representing an application
• Log stream: instances within application / log files / container
• Can define log expiration policies (never expire, 30 days, etc…)
• Using the AWS CLI we can tail CloudWatch logs
• To send logs to CloudWatch, make sure IAM permissions are correct!
• Security: encryption of logs using KMS at the Group Level
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 8
Module 9: CloudWatch
AWS CloudWatch Logs Metric Filter & Insights
• CloudWatch Logs can use filter expressions
• For example, find a specific IP inside of a log
• Metric filters can be used to trigger alarms
• CloudWatch Logs Insights (new – Nov 2018) can be used to query logs
and add queries to CloudWatch Dashboards
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 9
Module 9: CloudWatch
CloudWatch Logs for EC2
• By default, no logs from your EC2
machine will go to CloudWatch
• You need to run a CloudWatch agent on
EC2 to push the log files you want
• Make sure IAM permissions are correct
• The CloudWatch log agent can be setup
on-premises too
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 10
Module 9: CloudWatch
CloudWatch Logs Agent & Unified Agent
• For virtual servers (EC2 instances, on-premise servers…)
• CloudWatch Logs Agent
• Old version of the agent
• Can only send to CloudWatch Logs
• CloudWatch Unified Agent
• Collect additional system-level metrics such as RAM, processes, etc…
• Collect logs to send to CloudWatch Logs
• Centralized configuration using SSM Parameter Store
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 11
Module 9: CloudWatch
CloudWatch Unified Agent - Metrics
• Collected directly on your Linux server/ EC2 instance
• CPU (active, guest, idle, system, user, steal)
• Disk metrics (free, used, total), Disk IO (writes, reads, bytes, iops)
• RAM (free, inactive, used, total, cached)
• Netstat (number of TCP and UDP connections, net packets, bytes)
• Processes (total, dead, bloqued, idle, running, sleep)
• Swap Space (free, used, used %)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 12
Module 9: CloudWatch
AWS CloudWatch Alarm
• Alarms are used to trigger notifications for any metric
• Alarms can go to Auto Scaling, EC2 actions, SNS notifications
• Various options (sampling,%, max,min, etc…)
• Alarm States
• OK
• INSUFFICIENT_DATA
• ALARM
• Period
• Length of time in seconds to evaluate the metric
• High resolution custom metrics: can only choose 10 sec or 30 sec
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 13
Module 9: CloudWatch
EC2 Instance Recovery
• Status Check
• Instance status = check the EC2 VM
• System status = check the underlying hardware
• Recovery: Same Private, Public, Elastic IP, metadata, placement group
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 14
Module 9: CloudWatch
AWS CloudWatch Event
• Source + Rule => Target
• Schedule: Cron jobs
• Event Pattern: Event rules to react to a service doing something
• Ex: CodePipeline state changes
• Triggers to Lambda functions, SQS/SNS/Kinesis Messages
• CloudWatch Event creates a small JSON document to give information
about the change
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 15
Module 9: CloudWatch
AWS CloudTrail
• Provides governance, compliance and audit for your AWS Account
• CloudTrail is enabled by default
• Get an history of events/API calls made within your AWS Account by:
• Console
• SDK
• CLI
• AWS Services
• Can put logs from CloudTrail into CloudWatch Logs or S3
• A trail can be applied to All Region (default) or a single Region
• If a resource is deleted in AWS, investigate CloudTrail first
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 16
Module 9: CloudWatch
AWS CloudTrail Diagram
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 17
Module 9: CloudWatch
AWS CloudTrail Events
• Management Events
• Operations that are performed on resources in your AWS account
• Examples:
• Configuring security (IAM Attach Role Policy)
• Configuring rules for routing data (Amazon EC2 Create Subnet)
• Setting up logging (AWS CloudTrail Create Trail)
• By default, trails are configured to log management events
• Can separate Read Events (that don’’t modify resources) from Write Events (that may modify
resources)
• Data Events
• By default, data events are not logged (because high volume operations)
• Amazon S3 object-level activity (ex: GetObject, DeleteObject, PutObject): can separate Read and
Write Events
• AWS Lambda function execution activity
• CloudTrail Insights Events
• See next slide
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 18
Module 9: CloudWatch
AWS CloudTrail Insights
• Enable CloudTrail Insights to detect unusual activity in your account
• CloudTrail Insight analyzes normal management events to create a
baseline
• And then continuously analyzes write events to detect unusual patterns
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 19
Module 9: CloudWatch
AWS CloudTrail Events Retention
• Events are stored for 90 days in CloudTrail
• To keep events beyond this period, log them to S3 and use Athena
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 20
Module 9: CloudWatch
AWS Config
• Helps with auditing and recording compliance of your AWS resources
• Helps record configurations and changes over time
• Possibility of storing the configuration data into S3 (analyzed by Athena)
• Questions that can be solved by AWS Config:
• Is there unrestricted SSH access to my security groups?
• Do my buckets have any public access?
• How has my ALB configuration changesd over time?
• You can receive alerts (SNS notifications) for any changes
• AWS Config is a per- region service
• Can be aggreagated across regions and accounts
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 21
Module 9: CloudWatch
AWS Config Resource
• View compliance of a resource over time
• View configuration of a resource over time
• View CloudTrail API call if enabled
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 22
Module 9: CloudWatch
AWS Config Rules
• Can use AWS managed config rules (over 75)
• Can make custom config rules (must be defined in AWS Lambda)
• Rules can be evaluated/ triggered
• Rules can hava auto remediations:
• AWS Config Rules does not prevent actions from happening (no deny
• Pricing: no free tier, $2 per active rule per region per month
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 23
Module 9: CloudWatch
CloudWatch vs CloudTrail vs Config
• CloudWatch
• Performance monitoring (metrics, CPU, network, etc…) $ dashboards
• Events & Alerting
• Log Aggregation & Analysis
• CloudTrail
• Record API calls made within your Account by everyone
• Can define trails for specific resouces
• Global Service
• Config
• Record configuration changes
• Evaluate resources against compliance rules
• Get timeline of changes and compliance
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 24
Module 9: CloudWatch
For an Elastic Load Balancer
• CloudWatch
• Monitoring Incoming connections metric
• Visualize error codes as % over time
• Make a dashboard to get an idea of your load balancer performance
• CloudTrail
• Track who made any changes to the Load Balancer with API calls
• Config
• Track security group rules for the Load Balancer
• Track configuration changes for the Load Balancer
• Ensure an SSL certificate is always assigned to the Load Balancer (compliance)
AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 25
Module 9: CloudWatch

More Related Content

What's hot

SRV408 Deep Dive on AWS IoT
SRV408 Deep Dive on AWS IoTSRV408 Deep Dive on AWS IoT
SRV408 Deep Dive on AWS IoT
Amazon Web Services
 
Training AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWSTraining AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWS
Bùi Quang Lâm
 
Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...
Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...
Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...
Amazon Web Services
 
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
Amazon Web Services
 
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
Amazon Web Services
 
(SEC204) AWS GovCloud (US): Not Just for Govies
(SEC204) AWS GovCloud (US): Not Just for Govies(SEC204) AWS GovCloud (US): Not Just for Govies
(SEC204) AWS GovCloud (US): Not Just for Govies
Amazon Web Services
 
SEC301 Security @ (Cloud) Scale
SEC301 Security @ (Cloud) ScaleSEC301 Security @ (Cloud) Scale
SEC301 Security @ (Cloud) Scale
Amazon Web Services
 
AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...
AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...
AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...
Amazon Web Services
 
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
Amazon Web Services
 
ENT314 Automate Best Practices and Operational Health for Your AWS Resources
ENT314 Automate Best Practices and Operational Health for Your AWS ResourcesENT314 Automate Best Practices and Operational Health for Your AWS Resources
ENT314 Automate Best Practices and Operational Health for Your AWS Resources
Amazon Web Services
 
Real-time Data Processing Using AWS Lambda
Real-time Data Processing Using AWS LambdaReal-time Data Processing Using AWS Lambda
Real-time Data Processing Using AWS Lambda
Amazon Web Services
 
Monitoring in Motion: Monitoring Containers and Amazon ECS
Monitoring in Motion: Monitoring Containers and Amazon ECSMonitoring in Motion: Monitoring Containers and Amazon ECS
Monitoring in Motion: Monitoring Containers and Amazon ECS
Amazon Web Services
 
ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...
ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...
ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...
Amazon Web Services
 
Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...
Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...
Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...
Amazon Web Services
 
SRV403 Deep Dive on Object Storage: Amazon S3 and Amazon Glacier
SRV403 Deep Dive on Object Storage: Amazon S3 and Amazon GlacierSRV403 Deep Dive on Object Storage: Amazon S3 and Amazon Glacier
SRV403 Deep Dive on Object Storage: Amazon S3 and Amazon Glacier
Amazon Web Services
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
Amazon Web Services
 
Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...
Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...
Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...
Amazon Web Services
 
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...
Amazon Web Services
 
Training AWS: Module 2 - Computing in AWS
Training AWS: Module 2 - Computing in AWSTraining AWS: Module 2 - Computing in AWS
Training AWS: Module 2 - Computing in AWS
Bùi Quang Lâm
 
Reducing Latency and Increasing Performance while Cutting Infrastructure Costs
Reducing Latency and Increasing Performance while Cutting Infrastructure CostsReducing Latency and Increasing Performance while Cutting Infrastructure Costs
Reducing Latency and Increasing Performance while Cutting Infrastructure Costs
Amazon Web Services
 

What's hot (20)

SRV408 Deep Dive on AWS IoT
SRV408 Deep Dive on AWS IoTSRV408 Deep Dive on AWS IoT
SRV408 Deep Dive on AWS IoT
 
Training AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWSTraining AWS: Module 4 - Storage in AWS
Training AWS: Module 4 - Storage in AWS
 
Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...
Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...
Automated Compliance and Governance with AWS Config and AWS CloudTrail - June...
 
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
AWS re:Invent 2016: NEW SERVICE: Centrally Manage Multiple AWS Accounts with ...
 
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
AWS re:Invent 2016: 5 Security Automation Improvements You Can Make by Using ...
 
(SEC204) AWS GovCloud (US): Not Just for Govies
(SEC204) AWS GovCloud (US): Not Just for Govies(SEC204) AWS GovCloud (US): Not Just for Govies
(SEC204) AWS GovCloud (US): Not Just for Govies
 
SEC301 Security @ (Cloud) Scale
SEC301 Security @ (Cloud) ScaleSEC301 Security @ (Cloud) Scale
SEC301 Security @ (Cloud) Scale
 
AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...
AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...
AWS re:Invent 2016: How I learned to embrace DevOps and Configure Infrastruct...
 
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
 
ENT314 Automate Best Practices and Operational Health for Your AWS Resources
ENT314 Automate Best Practices and Operational Health for Your AWS ResourcesENT314 Automate Best Practices and Operational Health for Your AWS Resources
ENT314 Automate Best Practices and Operational Health for Your AWS Resources
 
Real-time Data Processing Using AWS Lambda
Real-time Data Processing Using AWS LambdaReal-time Data Processing Using AWS Lambda
Real-time Data Processing Using AWS Lambda
 
Monitoring in Motion: Monitoring Containers and Amazon ECS
Monitoring in Motion: Monitoring Containers and Amazon ECSMonitoring in Motion: Monitoring Containers and Amazon ECS
Monitoring in Motion: Monitoring Containers and Amazon ECS
 
ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...
ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...
ENT202 Creating Your Virtual Data Center: VPC Fundamentals and Connectivity O...
 
Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...
Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...
Hackproof Your Gov Cloud: Mitigating Risks for 2017 and Beyond | AWS Public S...
 
SRV403 Deep Dive on Object Storage: Amazon S3 and Amazon Glacier
SRV403 Deep Dive on Object Storage: Amazon S3 and Amazon GlacierSRV403 Deep Dive on Object Storage: Amazon S3 and Amazon Glacier
SRV403 Deep Dive on Object Storage: Amazon S3 and Amazon Glacier
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...
Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...
Migrate from Oracle to Amazon Aurora using AWS Schema Conversion Tool & AWS D...
 
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing on Amaz...
 
Training AWS: Module 2 - Computing in AWS
Training AWS: Module 2 - Computing in AWSTraining AWS: Module 2 - Computing in AWS
Training AWS: Module 2 - Computing in AWS
 
Reducing Latency and Increasing Performance while Cutting Infrastructure Costs
Reducing Latency and Increasing Performance while Cutting Infrastructure CostsReducing Latency and Increasing Performance while Cutting Infrastructure Costs
Reducing Latency and Increasing Performance while Cutting Infrastructure Costs
 

Similar to Training AWS: Module 9 - CloudWatch

오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
Amazon Web Services Korea
 
Apponix Academy - AWS Essentials-Solutions
Apponix Academy - AWS Essentials-SolutionsApponix Academy - AWS Essentials-Solutions
Apponix Academy - AWS Essentials-Solutions
nitinsrivastava1051
 
Training AWS: Module 1 - System Operation in AWS
Training AWS: Module 1 - System Operation in AWSTraining AWS: Module 1 - System Operation in AWS
Training AWS: Module 1 - System Operation in AWS
Bùi Quang Lâm
 
(SEC312) Reliable Design & Deployment of Security & Compliance
(SEC312) Reliable Design & Deployment of Security & Compliance(SEC312) Reliable Design & Deployment of Security & Compliance
(SEC312) Reliable Design & Deployment of Security & Compliance
Amazon Web Services
 
Webinar: Securely Configuring and Mining AWS CloudTrail
Webinar: Securely Configuring and Mining AWS CloudTrailWebinar: Securely Configuring and Mining AWS CloudTrail
Webinar: Securely Configuring and Mining AWS CloudTrail
Aaron Klein
 
Automated Governance of Your AWS Resources
Automated Governance of Your AWS ResourcesAutomated Governance of Your AWS Resources
Automated Governance of Your AWS Resources
Amazon Web Services
 
Network Security and Access Control in AWS
Network Security and Access Control in AWSNetwork Security and Access Control in AWS
Network Security and Access Control in AWS
Amazon Web Services
 
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
Amazon Web Services
 
Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...
Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...
Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...
Amazon Web Services
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
Amazon Web Services
 
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECSWeaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
Weaveworks
 
re:Invent recap session 2: Being well Architected in the cloud
re:Invent recap session 2: Being well Architected in the cloudre:Invent recap session 2: Being well Architected in the cloud
re:Invent recap session 2: Being well Architected in the cloud
Amazon Web Services
 
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel AvivFinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
Amazon Web Services
 
Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...
Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...
Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...
Amazon Web Services
 
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanDay 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Amazon Web Services
 
DevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureDevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless Architecture
Mikhail Prudnikov
 
Being Well Architected in the Cloud
Being Well Architected in the CloudBeing Well Architected in the Cloud
Being Well Architected in the Cloud
Adrian Hornsby
 
Aws+cloud+practitioner+exam+cram
Aws+cloud+practitioner+exam+cramAws+cloud+practitioner+exam+cram
Aws+cloud+practitioner+exam+cram
Vishnu Sure
 
AWS Landing Zone - Architecting Security and Governance
AWS Landing Zone - Architecting Security and GovernanceAWS Landing Zone - Architecting Security and Governance
AWS Landing Zone - Architecting Security and Governance
Akesh Patil
 
Harness the Power of Infrastructure as Code
Harness the Power of Infrastructure as CodeHarness the Power of Infrastructure as Code
Harness the Power of Infrastructure as Code
Amazon Web Services
 

Similar to Training AWS: Module 9 - CloudWatch (20)

오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
오토스케일링 제대로 활용하기 (김일호) - AWS 웨비나 시리즈 2015
 
Apponix Academy - AWS Essentials-Solutions
Apponix Academy - AWS Essentials-SolutionsApponix Academy - AWS Essentials-Solutions
Apponix Academy - AWS Essentials-Solutions
 
Training AWS: Module 1 - System Operation in AWS
Training AWS: Module 1 - System Operation in AWSTraining AWS: Module 1 - System Operation in AWS
Training AWS: Module 1 - System Operation in AWS
 
(SEC312) Reliable Design & Deployment of Security & Compliance
(SEC312) Reliable Design & Deployment of Security & Compliance(SEC312) Reliable Design & Deployment of Security & Compliance
(SEC312) Reliable Design & Deployment of Security & Compliance
 
Webinar: Securely Configuring and Mining AWS CloudTrail
Webinar: Securely Configuring and Mining AWS CloudTrailWebinar: Securely Configuring and Mining AWS CloudTrail
Webinar: Securely Configuring and Mining AWS CloudTrail
 
Automated Governance of Your AWS Resources
Automated Governance of Your AWS ResourcesAutomated Governance of Your AWS Resources
Automated Governance of Your AWS Resources
 
Network Security and Access Control in AWS
Network Security and Access Control in AWSNetwork Security and Access Control in AWS
Network Security and Access Control in AWS
 
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
 
Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...
Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...
Using AWS CloudTrail and AWS Config to Enhance Governance and Compliance of A...
 
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
AWS APAC Webinar Week - Maintaining Performance & Availability While Lowering...
 
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECSWeaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
 
re:Invent recap session 2: Being well Architected in the cloud
re:Invent recap session 2: Being well Architected in the cloudre:Invent recap session 2: Being well Architected in the cloud
re:Invent recap session 2: Being well Architected in the cloud
 
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel AvivFinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
 
Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...
Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...
Using AWS CloudTrail and AWS Config to Enhance the Governance and Compliance ...
 
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanDay 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
 
DevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureDevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless Architecture
 
Being Well Architected in the Cloud
Being Well Architected in the CloudBeing Well Architected in the Cloud
Being Well Architected in the Cloud
 
Aws+cloud+practitioner+exam+cram
Aws+cloud+practitioner+exam+cramAws+cloud+practitioner+exam+cram
Aws+cloud+practitioner+exam+cram
 
AWS Landing Zone - Architecting Security and Governance
AWS Landing Zone - Architecting Security and GovernanceAWS Landing Zone - Architecting Security and Governance
AWS Landing Zone - Architecting Security and Governance
 
Harness the Power of Infrastructure as Code
Harness the Power of Infrastructure as CodeHarness the Power of Infrastructure as Code
Harness the Power of Infrastructure as Code
 

More from Bùi Quang Lâm

Linux Day2
Linux Day2Linux Day2
Linux Day2
Bùi Quang Lâm
 
Linux Day1
Linux Day1Linux Day1
Linux Day1
Bùi Quang Lâm
 
Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53
Bùi Quang Lâm
 
Training AWS: Module 6 - Storage S3 in AWS
Training AWS: Module 6 - Storage S3 in AWSTraining AWS: Module 6 - Storage S3 in AWS
Training AWS: Module 6 - Storage S3 in AWS
Bùi Quang Lâm
 
Training AWS: Module 5 - Elastic Load Balancing & ASG
Training AWS: Module 5 - Elastic Load Balancing & ASGTraining AWS: Module 5 - Elastic Load Balancing & ASG
Training AWS: Module 5 - Elastic Load Balancing & ASG
Bùi Quang Lâm
 
Training AWS: Module 3 - Networking in AWS
Training AWS: Module 3 - Networking in AWSTraining AWS: Module 3 - Networking in AWS
Training AWS: Module 3 - Networking in AWS
Bùi Quang Lâm
 

More from Bùi Quang Lâm (6)

Linux Day2
Linux Day2Linux Day2
Linux Day2
 
Linux Day1
Linux Day1Linux Day1
Linux Day1
 
Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53
 
Training AWS: Module 6 - Storage S3 in AWS
Training AWS: Module 6 - Storage S3 in AWSTraining AWS: Module 6 - Storage S3 in AWS
Training AWS: Module 6 - Storage S3 in AWS
 
Training AWS: Module 5 - Elastic Load Balancing & ASG
Training AWS: Module 5 - Elastic Load Balancing & ASGTraining AWS: Module 5 - Elastic Load Balancing & ASG
Training AWS: Module 5 - Elastic Load Balancing & ASG
 
Training AWS: Module 3 - Networking in AWS
Training AWS: Module 3 - Networking in AWSTraining AWS: Module 3 - Networking in AWS
Training AWS: Module 3 - Networking in AWS
 

Recently uploaded

Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls ChennaiCall Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
paraasingh12 #V08
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call GirlCall Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
sapna sharmap11
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
pvpriya2
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
nedcocy
 
comptia-security-sy0-701-exam-objectives-(5-0).pdf
comptia-security-sy0-701-exam-objectives-(5-0).pdfcomptia-security-sy0-701-exam-objectives-(5-0).pdf
comptia-security-sy0-701-exam-objectives-(5-0).pdf
foxlyon
 
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
nonods
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
uqyfuc
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
PriyankaKilaniya
 
Northrop Grumman - Aerospace Structures Overvi.pdf
Northrop Grumman - Aerospace Structures Overvi.pdfNorthrop Grumman - Aerospace Structures Overvi.pdf
Northrop Grumman - Aerospace Structures Overvi.pdf
takipo7507
 
FUNDAMENTALS OF MECHANICAL ENGINEERING.pdf
FUNDAMENTALS OF MECHANICAL ENGINEERING.pdfFUNDAMENTALS OF MECHANICAL ENGINEERING.pdf
FUNDAMENTALS OF MECHANICAL ENGINEERING.pdf
EMERSON EDUARDO RODRIGUES
 
Lateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptxLateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptx
DebendraDevKhanal1
 
Flow Through Pipe: the analysis of fluid flow within pipes
Flow Through Pipe:  the analysis of fluid flow within pipesFlow Through Pipe:  the analysis of fluid flow within pipes
Flow Through Pipe: the analysis of fluid flow within pipes
Indrajeet sahu
 
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
GiselleginaGloria
 
paper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdfpaper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdf
ShurooqTaib
 
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
OKORIE1
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
IJCNCJournal
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 

Recently uploaded (20)

Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls ChennaiCall Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call GirlCall Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
 
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
一比一原版(爱大毕业证书)爱荷华大学毕业证如何办理
 
comptia-security-sy0-701-exam-objectives-(5-0).pdf
comptia-security-sy0-701-exam-objectives-(5-0).pdfcomptia-security-sy0-701-exam-objectives-(5-0).pdf
comptia-security-sy0-701-exam-objectives-(5-0).pdf
 
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
一比一原版(psu学位证书)美国匹兹堡州立大学毕业证如何办理
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
 
Northrop Grumman - Aerospace Structures Overvi.pdf
Northrop Grumman - Aerospace Structures Overvi.pdfNorthrop Grumman - Aerospace Structures Overvi.pdf
Northrop Grumman - Aerospace Structures Overvi.pdf
 
FUNDAMENTALS OF MECHANICAL ENGINEERING.pdf
FUNDAMENTALS OF MECHANICAL ENGINEERING.pdfFUNDAMENTALS OF MECHANICAL ENGINEERING.pdf
FUNDAMENTALS OF MECHANICAL ENGINEERING.pdf
 
Lateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptxLateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptx
 
Flow Through Pipe: the analysis of fluid flow within pipes
Flow Through Pipe:  the analysis of fluid flow within pipesFlow Through Pipe:  the analysis of fluid flow within pipes
Flow Through Pipe: the analysis of fluid flow within pipes
 
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
 
paper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdfpaper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdf
 
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
DESIGN AND MANUFACTURE OF CEILING BOARD USING SAWDUST AND WASTE CARTON MATERI...
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 

Training AWS: Module 9 - CloudWatch

  • 1. AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 1 Training Course Amazon Web Service Day Content Lab Day 1 System Operations on AWS Day 2 Computing on AWS X Day 3 Networking on AWS X Day 4 Storage in AWS (EBS, EFS, Instance Store) X Day 5 Elastic Load Balancing & Auto Scaling Group X Day 6 Storage S3 in AWS X Day 7 Route 53 X Day 8 RDS, Aurora, ElastiCache X Day 9 CloudWatch X Author: Bui Quang Lam Phone/Zalo: +84.0365.635.598 Mail: buiquanglam185@gmail.com
  • 2.  Goal: Understanding Monitoring in AWS  CloudWatch  CloudTrail  AWS Config Lab: Create and configuring Monitoring AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 2 Module 9: CloudWatch
  • 3. AWS CloudWatch Metrics • CloudWatch provides metrics for every services in AWS • Metric is a variable to monitor (CPUUtilization, NetworkIn…) • Metrics belong to namespaces • Dimension is an attribute of a metric (instance id, environment, etc…) • Up to 10 dimensions per metric • Metrics have timestamps • Can create CloudWatch dashboards of metrics AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 3 Module 9: CloudWatch
  • 4. AWS CloudWatch EC2 Detailed monitoring • EC2 instance metrics have metrics “every 5 minutes” • With detailed monitoring (for a cost), you get data “every 1 minute” • Use detailed monitoring if you want to more promt scale your ASG! • The AWS Free Tier allows us to have 10 detailed monitoring metric • Note: EC2 Memory usage is by default not pushed (must be pushed from inside the instance as a custom metric) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 4 Module 9: CloudWatch
  • 5. AWS CloudWatch Custom Metrics • Possibility to define and send your own custom metrics to CloudWatch • Ability to use dimensions (attiributes) to segment metrics • Instance.id • Environment.name • Metric resolution (StorageResolution API parameter – two possible value) • Standard: 1 minute (60 seconds) • High Resolution: 1 second – Higher cost • Use API call PutMetricData • Use exponential back off in case of throttle errors AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 5 Module 9: CloudWatch
  • 6. CloudWatch Dashboards • Great way to setup dashboards for quick access to keys metrics • Dashboards are global • Dashboards can include graphs from different regions • You can change the time zone & time range of the dashboards • You can setup automatic refresh (10s, 1m, 2m, 5m, 15m) • Pricing • 3 dashboards (up to 50 metrics) for free • $3/dashboard/month afterwards AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 6 Module 9: CloudWatch
  • 7. AWS CloudWatch Logs • Applications can send logs to CloudWatch using the SDK • CloudWatch can collect log from • Elastic Beanstalk: collection of logs from application • EC2: collection from containers • AWS Lambda: collection from function logs • VPC Flow Logs: VPC specific logs • API Gateway • CloudTrail based on filter • CloudWatch Log agents: for example on EC2 machines • Route53: Log DNS queries • CloudWatch logs can go to: Batch exporter to S3 or Stream to ElasticSearch AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 7 Module 9: CloudWatch
  • 8. AWS CloudWatch Logs • Logs storage architecture • Log groups: arbitrary name, usually representing an application • Log stream: instances within application / log files / container • Can define log expiration policies (never expire, 30 days, etc…) • Using the AWS CLI we can tail CloudWatch logs • To send logs to CloudWatch, make sure IAM permissions are correct! • Security: encryption of logs using KMS at the Group Level AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 8 Module 9: CloudWatch
  • 9. AWS CloudWatch Logs Metric Filter & Insights • CloudWatch Logs can use filter expressions • For example, find a specific IP inside of a log • Metric filters can be used to trigger alarms • CloudWatch Logs Insights (new – Nov 2018) can be used to query logs and add queries to CloudWatch Dashboards AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 9 Module 9: CloudWatch
  • 10. CloudWatch Logs for EC2 • By default, no logs from your EC2 machine will go to CloudWatch • You need to run a CloudWatch agent on EC2 to push the log files you want • Make sure IAM permissions are correct • The CloudWatch log agent can be setup on-premises too AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 10 Module 9: CloudWatch
  • 11. CloudWatch Logs Agent & Unified Agent • For virtual servers (EC2 instances, on-premise servers…) • CloudWatch Logs Agent • Old version of the agent • Can only send to CloudWatch Logs • CloudWatch Unified Agent • Collect additional system-level metrics such as RAM, processes, etc… • Collect logs to send to CloudWatch Logs • Centralized configuration using SSM Parameter Store AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 11 Module 9: CloudWatch
  • 12. CloudWatch Unified Agent - Metrics • Collected directly on your Linux server/ EC2 instance • CPU (active, guest, idle, system, user, steal) • Disk metrics (free, used, total), Disk IO (writes, reads, bytes, iops) • RAM (free, inactive, used, total, cached) • Netstat (number of TCP and UDP connections, net packets, bytes) • Processes (total, dead, bloqued, idle, running, sleep) • Swap Space (free, used, used %) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 12 Module 9: CloudWatch
  • 13. AWS CloudWatch Alarm • Alarms are used to trigger notifications for any metric • Alarms can go to Auto Scaling, EC2 actions, SNS notifications • Various options (sampling,%, max,min, etc…) • Alarm States • OK • INSUFFICIENT_DATA • ALARM • Period • Length of time in seconds to evaluate the metric • High resolution custom metrics: can only choose 10 sec or 30 sec AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 13 Module 9: CloudWatch
  • 14. EC2 Instance Recovery • Status Check • Instance status = check the EC2 VM • System status = check the underlying hardware • Recovery: Same Private, Public, Elastic IP, metadata, placement group AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 14 Module 9: CloudWatch
  • 15. AWS CloudWatch Event • Source + Rule => Target • Schedule: Cron jobs • Event Pattern: Event rules to react to a service doing something • Ex: CodePipeline state changes • Triggers to Lambda functions, SQS/SNS/Kinesis Messages • CloudWatch Event creates a small JSON document to give information about the change AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 15 Module 9: CloudWatch
  • 16. AWS CloudTrail • Provides governance, compliance and audit for your AWS Account • CloudTrail is enabled by default • Get an history of events/API calls made within your AWS Account by: • Console • SDK • CLI • AWS Services • Can put logs from CloudTrail into CloudWatch Logs or S3 • A trail can be applied to All Region (default) or a single Region • If a resource is deleted in AWS, investigate CloudTrail first AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 16 Module 9: CloudWatch
  • 17. AWS CloudTrail Diagram AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 17 Module 9: CloudWatch
  • 18. AWS CloudTrail Events • Management Events • Operations that are performed on resources in your AWS account • Examples: • Configuring security (IAM Attach Role Policy) • Configuring rules for routing data (Amazon EC2 Create Subnet) • Setting up logging (AWS CloudTrail Create Trail) • By default, trails are configured to log management events • Can separate Read Events (that don’’t modify resources) from Write Events (that may modify resources) • Data Events • By default, data events are not logged (because high volume operations) • Amazon S3 object-level activity (ex: GetObject, DeleteObject, PutObject): can separate Read and Write Events • AWS Lambda function execution activity • CloudTrail Insights Events • See next slide AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 18 Module 9: CloudWatch
  • 19. AWS CloudTrail Insights • Enable CloudTrail Insights to detect unusual activity in your account • CloudTrail Insight analyzes normal management events to create a baseline • And then continuously analyzes write events to detect unusual patterns AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 19 Module 9: CloudWatch
  • 20. AWS CloudTrail Events Retention • Events are stored for 90 days in CloudTrail • To keep events beyond this period, log them to S3 and use Athena AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 20 Module 9: CloudWatch
  • 21. AWS Config • Helps with auditing and recording compliance of your AWS resources • Helps record configurations and changes over time • Possibility of storing the configuration data into S3 (analyzed by Athena) • Questions that can be solved by AWS Config: • Is there unrestricted SSH access to my security groups? • Do my buckets have any public access? • How has my ALB configuration changesd over time? • You can receive alerts (SNS notifications) for any changes • AWS Config is a per- region service • Can be aggreagated across regions and accounts AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 21 Module 9: CloudWatch
  • 22. AWS Config Resource • View compliance of a resource over time • View configuration of a resource over time • View CloudTrail API call if enabled AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 22 Module 9: CloudWatch
  • 23. AWS Config Rules • Can use AWS managed config rules (over 75) • Can make custom config rules (must be defined in AWS Lambda) • Rules can be evaluated/ triggered • Rules can hava auto remediations: • AWS Config Rules does not prevent actions from happening (no deny • Pricing: no free tier, $2 per active rule per region per month AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 23 Module 9: CloudWatch
  • 24. CloudWatch vs CloudTrail vs Config • CloudWatch • Performance monitoring (metrics, CPU, network, etc…) $ dashboards • Events & Alerting • Log Aggregation & Analysis • CloudTrail • Record API calls made within your Account by everyone • Can define trails for specific resouces • Global Service • Config • Record configuration changes • Evaluate resources against compliance rules • Get timeline of changes and compliance AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 24 Module 9: CloudWatch
  • 25. For an Elastic Load Balancer • CloudWatch • Monitoring Incoming connections metric • Visualize error codes as % over time • Make a dashboard to get an idea of your load balancer performance • CloudTrail • Track who made any changes to the Load Balancer with API calls • Config • Track security group rules for the Load Balancer • Track configuration changes for the Load Balancer • Ensure an SSL certificate is always assigned to the Load Balancer (compliance) AWS COURSE DOCUMENT- BUI QUANG LAM - TRAINING 25 Module 9: CloudWatch