SlideShare a Scribd company logo
1 of 42
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Advanced Monitoring for
Amazon RDS
Senior RDS Specialist Solutions Architect
Amazon Web Services
Tony Mullen (he/him)
Data Architect
CDL
Matthew Houghton(he/him)
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Agenda
• Monitoring capabilities
• CloudWatch alarms
• Custom metrics
• RDS events
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Monitoring capabilities at a glance
Monitor core (CPU, memory) and
transactional (throughput,
latency)
metrics
Publishing database logs
(errors, audit, and slow
queries)
to a centralized log store
Query- and wait-
level
performance data
Additional database-
specific
metrics at up to 1 second
granularity
Amazon CloudWatch
Metrics
Amazon CloudWatch
Logs
Performance
Insights
Enhanced
Monitoring
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
DB is slow....
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Why is my system running slow?
RDS Cloudwatch
• 1 Minute Interval
• View in AWS Console or
push to monitoring
systems
• Available for 15 Days
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Why is my system running slow?
RDS Enhanced Monitoring
• Per-process host metrics
• View in AWS Console or push
to monitoring systems
• 1-60 second granularity
• Start with 15s
• Dial down to 1s when
troubleshooting
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Why is my system running slow?
RDS Performance Insights
• Measure database load, average active
sessions
• All RDS engines
• No licensing requirements
• View in AWS Console or push to
monitoring systems
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Amazon RDS
Performance
Insights
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Amazon RDS
Performance
Insights
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
CloudWatch Alarms
RDS instance
Alarm
Lambda function
Email notification
Amazon CloudWatch
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
CloudWatch
Alarms
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Publishing Logs to CloudWatch Logs
• You can configure your Amazon RDS Oracle DB instance to publish log data
to a log group in Amazon CloudWatch Logs.
• With CloudWatch Logs, you can analyze the log data, and use CloudWatch
to create alarms and view metrics and store your log records in highly
durable storage.
• Amazon RDS publishes each log as a separate database stream in the log
group.
• CWLogs location - /aws/rds/instance/my_instance/audit log group
• Types of log files which can be published to CloudWatch
§ Oracle RDS - Alert, Audit, Listener, Trace & Oracle management Agent
§ Postgres RDS - PostreSQL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Publishing Logs to Cloud Watch Logs
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Custom Metrics
• Flexibility
• Granularity
• Enhanced insights
• Alarms
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Custom Metrics
• Application performance
• Business metrics
• Operational metrics
• Resource utilization
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Custom Metrics
aws cloudwatch put-metric-data 
—namespace test-custom-metric 
—metric-name test-blocking-session 
—unit Count —value $BLOCKING_COUNT 
—dimensions InstanceID=orcl-blog-tonym
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Custom Metrics
#!/bin/bash
echo "Gathering blocking session"
BLOCKING_COUNT=`sqlplus -s username@"(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hostname )(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORCL)))"
<< EOF
set head off verify off feedback off pagesize0;
select count(*) from v$lock l1, v$lock l2 where l1.block =1 and l2.request > 0 and
l1.id1=l2.id1 and l1.id2=l2.id2;
EOF`
echo "Blocking Count = $BLOCKING_COUNT”
echo "Pushing to cloudwatch"
aws cloudwatch put-metric-data —namespace test-custom-metric
—metric-name test-blocking-session —unit Count —value $BLOCKING_COUNT
—dimensions InstanceID=orcl-blog-tonym
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Custom Metrics
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
CloudWatch Dashboard
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Tracking RDS Events
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Recommendations
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
DevOps Guru for RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
CDL - EXTERNAL
AA Component
“CDL provides
the most stable
and functionally
complete
insurance
broking platform
software in the
UK.”
Strata
Component
Overview
CDL - EXTERNAL
AWS Cloud
Availability Zone 1 Availability Zone 2
VPC
Multi-AZ
AWS Cloud
Availability Zone 1
VPC
Clone
Transportable
Database
Production Non-Production
Amazon QuickSight
Read-Replica
AWS Cloud
Services
VPC
AWS Lambda
AWS Backup
AWS Cloud
Availability Zone 1 Availability Zone 2
Multi-AZ
Read-Replica
Analytics
VPC
CDC
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Availability Monitoring
• Rundeck
• Heartbeat
• OpenSearch
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Availability Monitoring
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
It’s Up, But Is It Ok?
• CloudWatch Metrics
• Logs
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Logs
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Logs
Parameter Default CDL
log_connections – 1
log_disconnections – 1
log_checkpoints 1
log_lock_waits –
log_min_duration_sample –
log_min_duration_statement – 1000
log_statement – all|ddl|mod
log_statement_sample_rate –
log_statement_stats –
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
SQL
• Log Minimum Duration
• Review SQL
• Tune
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Lambda
• Bespoke SQL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Playbook
• When there is a problem
§ Login to database
§ List of scripts is shown
§ Run scripts
§ SharePoint – On Call Known Issues
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Dynatrace
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Playbook
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Playbook
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
Future
• Dynatrace
• RDS DevOps Guru
• Systems Manager
• S3 For Logs / OpenSearch Serverless
Matt Houghton
• @mattdevdba
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CDL - EXTERNAL
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thanks
Linked in
• Let’s Talk About Data
§ Streams every Wednesday
§ https://www.twitch.tv/aws

More Related Content

Similar to Advanced Monitoring for Amazon RDS - AWS 4D Event Manchester 16th June 2023

Enterprise Cloud Security
Enterprise Cloud SecurityEnterprise Cloud Security
Enterprise Cloud SecurityMongoDB
 
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...Amazon Web Services
 
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarRelational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarAmazon Web Services
 
Oracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudAmazon Web Services
 
Oracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFOracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFAmazon Web Services
 
Oracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoOracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoAmazon Web Services
 
Oracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinOracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinAmazon Web Services
 
Deep Visibility: Logging From Distributed Microservices
Deep Visibility: Logging From Distributed MicroservicesDeep Visibility: Logging From Distributed Microservices
Deep Visibility: Logging From Distributed MicroservicesAaronLieberman5
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureSinanPetrusToma
 
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...NomanKhalid56
 
KoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloudKoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloudTobias Koprowski
 
Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7Morgan Tocker
 
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...Amazon Web Services
 
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Kamalesh Ramasamy
 
DBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseDBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseSinanPetrusToma
 
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Amazon Web Services
 
Serverless data and analytics on AWS for operations
Serverless data and analytics on AWS for operations Serverless data and analytics on AWS for operations
Serverless data and analytics on AWS for operations CloudHesive
 

Similar to Advanced Monitoring for Amazon RDS - AWS 4D Event Manchester 16th June 2023 (20)

PostgreSQL
PostgreSQL PostgreSQL
PostgreSQL
 
Enterprise Cloud Security
Enterprise Cloud SecurityEnterprise Cloud Security
Enterprise Cloud Security
 
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
 
PostgreSQL
PostgreSQLPostgreSQL
PostgreSQL
 
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarRelational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
 
Oracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the Cloud
 
Oracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFOracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SF
 
Oracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoOracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San Francisco
 
Oracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinOracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill Baldwin
 
Deep Visibility: Logging From Distributed Microservices
Deep Visibility: Logging From Distributed MicroservicesDeep Visibility: Logging From Distributed Microservices
Deep Visibility: Logging From Distributed Microservices
 
Oracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud InfrastructureOracle Database Migration to Oracle Cloud Infrastructure
Oracle Database Migration to Oracle Cloud Infrastructure
 
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
 
KoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloudKoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#3_Bristol_FromPlanToBackupToCloud
 
Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7Upcoming changes in MySQL 5.7
Upcoming changes in MySQL 5.7
 
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience...
 
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
 
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
 
DBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous DatabaseDBA Tasks in Oracle Autonomous Database
DBA Tasks in Oracle Autonomous Database
 
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
 
Serverless data and analytics on AWS for operations
Serverless data and analytics on AWS for operations Serverless data and analytics on AWS for operations
Serverless data and analytics on AWS for operations
 

Recently uploaded

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 

Recently uploaded (20)

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 

Advanced Monitoring for Amazon RDS - AWS 4D Event Manchester 16th June 2023

  • 1. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Advanced Monitoring for Amazon RDS Senior RDS Specialist Solutions Architect Amazon Web Services Tony Mullen (he/him) Data Architect CDL Matthew Houghton(he/him)
  • 2. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Agenda • Monitoring capabilities • CloudWatch alarms • Custom metrics • RDS events
  • 3. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Monitoring capabilities at a glance Monitor core (CPU, memory) and transactional (throughput, latency) metrics Publishing database logs (errors, audit, and slow queries) to a centralized log store Query- and wait- level performance data Additional database- specific metrics at up to 1 second granularity Amazon CloudWatch Metrics Amazon CloudWatch Logs Performance Insights Enhanced Monitoring
  • 4. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL DB is slow....
  • 5. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Why is my system running slow? RDS Cloudwatch • 1 Minute Interval • View in AWS Console or push to monitoring systems • Available for 15 Days
  • 6. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Why is my system running slow? RDS Enhanced Monitoring • Per-process host metrics • View in AWS Console or push to monitoring systems • 1-60 second granularity • Start with 15s • Dial down to 1s when troubleshooting
  • 7. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Why is my system running slow? RDS Performance Insights • Measure database load, average active sessions • All RDS engines • No licensing requirements • View in AWS Console or push to monitoring systems
  • 8. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Amazon RDS Performance Insights
  • 9. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Amazon RDS Performance Insights
  • 10. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL CloudWatch Alarms RDS instance Alarm Lambda function Email notification Amazon CloudWatch
  • 11. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL CloudWatch Alarms
  • 12. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Publishing Logs to CloudWatch Logs • You can configure your Amazon RDS Oracle DB instance to publish log data to a log group in Amazon CloudWatch Logs. • With CloudWatch Logs, you can analyze the log data, and use CloudWatch to create alarms and view metrics and store your log records in highly durable storage. • Amazon RDS publishes each log as a separate database stream in the log group. • CWLogs location - /aws/rds/instance/my_instance/audit log group • Types of log files which can be published to CloudWatch § Oracle RDS - Alert, Audit, Listener, Trace & Oracle management Agent § Postgres RDS - PostreSQL
  • 13. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Publishing Logs to Cloud Watch Logs
  • 14. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Custom Metrics • Flexibility • Granularity • Enhanced insights • Alarms
  • 15. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Custom Metrics • Application performance • Business metrics • Operational metrics • Resource utilization
  • 16. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Custom Metrics aws cloudwatch put-metric-data —namespace test-custom-metric —metric-name test-blocking-session —unit Count —value $BLOCKING_COUNT —dimensions InstanceID=orcl-blog-tonym
  • 17. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Custom Metrics #!/bin/bash echo "Gathering blocking session" BLOCKING_COUNT=`sqlplus -s username@"(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname )(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORCL)))" << EOF set head off verify off feedback off pagesize0; select count(*) from v$lock l1, v$lock l2 where l1.block =1 and l2.request > 0 and l1.id1=l2.id1 and l1.id2=l2.id2; EOF` echo "Blocking Count = $BLOCKING_COUNT” echo "Pushing to cloudwatch" aws cloudwatch put-metric-data —namespace test-custom-metric —metric-name test-blocking-session —unit Count —value $BLOCKING_COUNT —dimensions InstanceID=orcl-blog-tonym
  • 18. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Custom Metrics
  • 19. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL CloudWatch Dashboard
  • 20. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Tracking RDS Events
  • 21. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Recommendations
  • 22. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL DevOps Guru for RDS
  • 23. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL
  • 24. CDL - EXTERNAL AA Component “CDL provides the most stable and functionally complete insurance broking platform software in the UK.” Strata Component Overview
  • 25. CDL - EXTERNAL AWS Cloud Availability Zone 1 Availability Zone 2 VPC Multi-AZ AWS Cloud Availability Zone 1 VPC Clone Transportable Database Production Non-Production Amazon QuickSight Read-Replica AWS Cloud Services VPC AWS Lambda AWS Backup AWS Cloud Availability Zone 1 Availability Zone 2 Multi-AZ Read-Replica Analytics VPC CDC
  • 26. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Availability Monitoring • Rundeck • Heartbeat • OpenSearch
  • 27. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Availability Monitoring
  • 28. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL
  • 29. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL It’s Up, But Is It Ok? • CloudWatch Metrics • Logs
  • 30. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL
  • 31. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Logs
  • 32. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Logs Parameter Default CDL log_connections – 1 log_disconnections – 1 log_checkpoints 1 log_lock_waits – log_min_duration_sample – log_min_duration_statement – 1000 log_statement – all|ddl|mod log_statement_sample_rate – log_statement_stats –
  • 33. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL SQL • Log Minimum Duration • Review SQL • Tune
  • 34. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL
  • 35. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Lambda • Bespoke SQL
  • 36. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL
  • 37. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Playbook • When there is a problem § Login to database § List of scripts is shown § Run scripts § SharePoint – On Call Known Issues
  • 38. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Dynatrace
  • 39. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Playbook
  • 40. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Playbook
  • 41. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL Future • Dynatrace • RDS DevOps Guru • Systems Manager • S3 For Logs / OpenSearch Serverless Matt Houghton • @mattdevdba
  • 42. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDL - EXTERNAL © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thanks Linked in • Let’s Talk About Data § Streams every Wednesday § https://www.twitch.tv/aws