DEV209 A Field Guide to Monitoring in the Cloud: From Lift and Shift to AWS Lambda
Transcript of DEV209 A Field Guide to Monitoring in the Cloud: From Lift and Shift to AWS Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS re:INVENTA Fie ld Guide to Moni tor ing in the Cloud:
From Li f t and Shi f t to AWS Lambda
D E V 2 0 9
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Hello
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“We count everything in baseball.”
-Billy Chapel
Played by Kevin Costner in
For Love of the Game
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Hello
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Timex Sinclair 1000
Senior Cloud Architect
in/kupsand
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Compaq DeskPro
Manager, Site Reliability Engineering
in/rob-gindes
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
…is the empirical analysis
of baseball, especially baseball
statistics that measure in-game
activity.
-term coined by Bill James
SABERMETRICS…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WorldHello
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
10 PRINT “Hello World”
MY FIRST PROGRAM…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
TWO MINUTES LATER…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
5 REM My first program
10 PRINT “Hello World”
VERSION 1.1 (WELL DOCUMENTED)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
<HTML>
<HEAD>
<TITLE>
My first web page
</TITLE>
</HEAD>
<BODY>
<H1>Hello World</H1>
</BODY>
</HTML>
MY FIRST WEB PAGE…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SuccessProve
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Monitoring has changed
• Migration 101
• New Relic Platform
• Gannett – USA Today
WHAT WE’LL COVER…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THINGS HAVE CHANGED…
1 Deploy
per quarter
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THINGS HAVE CHANGED…
2 Deploys
per month
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THINGS HAVE CHANGED…
2 Deploys
per week
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THINGS HAVE CHANGED…
Many Deploys
per day
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DATA VOLUME HAS INCREASED EXPONENTIALLY …
Web Application
Before
1 application
3 large servers
1 database
1 data center
1 deploy/quarter
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DATA VOLUME HAS INCREASED EXPONENTIALLY …
Web Application
Now
30 containers
4 services
10 small instances
1 load balancer
2 databases
2 cloud regions
Many deploys/day
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CUSTOMER EXPERIENCE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APPLICATIONS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
INFRASTRUCTURE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Migration 101
MIGRATION 101
Start with the little things
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
QUESTIONS TO ASK…
• How are we performing now?
• Are we stable?
• Are we ready to migrate?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC SYNTHETICS
An automated source of
performance data
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
BASELINE CURRENT STATE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
COMPARE WITH MIGRATED STATE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CLOUD BENEFIT: AWS INTEGRATIONS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
START BASIC, BUT QUICKLY!
This scripting action is the basis for
nearly all scripted browsers.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MORE ADVANCED
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EASY TO SETUP
From
Where?
How Often?
Name &
Apdex
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC BROWSER
Get actionable performance
visibility in the wild
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
REAL USERS
Page Load Time
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DRILL DOWN
Session
TracesJS Errors
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC MOBILE
Understand how your apps
perform on the small screen
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MOBILE OVERVIEW
Launches
Crashes Errors
Response
Time
Interactions
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MOBILE SUPPORTED PLATFORMS
• Ant
• Eclipse
• Gradle and Android Studio
• Maven
• Legacy Android 2.2
• Objective-C
• Swift
• CocoaPods
Android iOS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CUSTOMER EXPERIENCE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APPLICATIONS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC APM
Build, deploy, and maintain great
software with better monitoring for
the best customer experience
(Application Performance Monitoring)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APM – SERVICE MAP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APM – HEALTH MAP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APM – SEVEN LANGUAGES
Go: Import agent into application
Java: Unzip agent files & add line to JVM arguments
.Net: Use MSI installer on server
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APM – SEVEN LANGUAGES
Node: Use NPM to install dependency & add as a required file in application
PHP: Include as PHP extension
Python: Use PIP to install New Relic as dependency
Ruby: Include New Relic as Gem file
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
RECAP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
INFRASTRUCTURE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC INFRASTRUCTURE
Complete dynamic infrastructure
and server monitoring
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
INFRASTRUCTURE OVERVIEW
Load
CPU
Events
Memory
APM
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MANUAL DEPLOYMENT
Linux: BASH script
Windows: Uses MSI install package or PowerShell script
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DEPLOY QUICKLY
Linux: User Data
http://bit.ly/nr-0toDataIn60
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AUTOMATED INSTALLATION
AWS
Systems
Manager
• Ansible
• Chef
• Puppet
• AWS Elastic Beanstalk
• AWS Systems Manager
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC @ GANNETT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SuccessProve
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WHAT WE’VE COVERED
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Migration 101
NEW RELIC PLATFORM
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NEW RELIC INSIGHTS
Organize. Visualize. Evaluate.
All your data in one place
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DASHBOARD 1 OF 3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DASHBOARD 2 OF 3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DASHBOARD 3 OF 3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NRQL EXAMPLE 1 OF 2
SELECT count(*) FROM Transaction since 1 day ago FACET httpResponseCode
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NRQL EXAMPLE 2 OF 2
SELECT (((uniquecount(PotentialCartGrandTotal))-
(uniquecount(PurchasedCartGrandTotal))/(uniquecount(PotentialCartGrandTotal))))
AS '(%) Carts Left Without Purchase' FROM PageView SINCE today
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MOBILE INTERFACE
• Access anywhere
• Key Transactions
• Event notifications
1.5BMETRICS AND EVENTS
PER MINUTE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
BASELINE ALERTING
• Best algorithm chosen automatically
• Metric data and NRQL queries
• Surface abnormalities
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
APM ERROR PROFILES
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
RADAR
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Migration 101
NEW RELIC PLATFORM
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Senior Cloud Architect
in/kupsand
Manager, Site Reliability Engineering
in/rob-gindes
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THANK YOU!
Vis i t New Rel ic
at booth # 2412