Sleep better by automating monitoring for your app (CakeFest 2013)

Preview:

Citation preview

SLEEP BETTER BYAUTOMATING

MONITORING FOR YOURAPP

Juan Basso - @jrbasso

System Architect - Zumba Fitness

I AM NOT...Being paid by any companyAssociated of any companyGetting any kind of benefitProfessional Talker :D

TYPES OF MONITORINGServer Application (Your CakePHP App!)Client Side (JavaScript, Timing, Content, Privileges)System Monitoring (CPU, Memory, Network)Logs (What is Going On)Metrics (Listen to the Numbers)

SERVER APPLICATIONWhat is happening with your CakePHP app?Is your app running?Is your cron apps running as planned?Why are my requests slow in production? Works fine on my local!

NEW RELICSite:PHP Extension + SaaSFocused on the ApplicationGood PHP IntegrationShow Slow QueriesShow Slow TransactionsRequest Trace DetailCakePHP FriendlySLA Reports

http://www.newrelic.com

APPDYNAMICSSite:SaaSFocused on NetworkShow Slow QueriesShow Slow TransactionsRequest Trace DetailNOT CakePHP Friendly

http://www.appdynamics.com/

ZEND SERVERSite:Web Server with MonitoringStore Full Request DetailRequest Trace DetailAll-in-one

http://www.zend.com/en/products/server/

APMSite:Extension, Free, Poor DocumentationHard to Install

http://pecl.php.net/package/APM

CLIENT SIDECan the users hit my pages?How many users are using my site?What is the page load time? Is it usable?Is the user having issues with his browser?Some users complain about some page, but works on mylocal!

NEW RELIC (CLIENT SIDE)Page Load TimeHealth CheckCorelate User and Server Requests

APPDYNAMICS (CLIENT SIDE)Page Load TimeHealth CheckCorelate User and Server RequestsJavaScript Errors

QBAKASite: https://qbaka.comSaaSJavascript Error ReportingRequire Some JS on the Page

REAL TIME VISITORSGoogle Analytics ( )Pingdom ( )Gauges ( )

https://www.google.com/analyticshttps://www.pingdom.com

http://get.gaug.es

SYSTEM MONITORINGMy app is down! Why?!?! I didn't change the code!I can connect to the service, but why the app doesn't work?What part of the system is not working?Is my server over or under capacity?Do I need to scale up/down my servers? Should I? Can I?

SCOUTSite:SaaSLots of ChartsBased on PluginsRuby FriendlyAlerts by E-mail, SMS, PagerDuty, Web Hooks

https://scoutapp.com/

SERVER DENSITYSite:SaaSCloud, Server and Site MonitoringResponsive InterfaceAlerts by E-mail, SMS, Push Notifications, Web HooksCan Re-Scale Instances (from docs)

http://www.serverdensity.com/

BOUNDARYSite:SaaSLinux Kernel ModuleDeep Network MonitoringProactive Alerting (Cristal Ball)

http://boundary.com/

NAGIOSSite:The Classic! The Legend!You Have to ManageTons of CheckersHard To SetupUgly Interface

http://www.nagios.org

LOGSWhat is wrong with my server?Is my code/server crashing?How to find an error in a pile of logs?

LOGGLYSite:SaaSCombine All LogsReal-Time

http://loggly.com/

PAPERTRAILSite:SaaSCombine All LogsReal-Time

https://papertrailapp.com/

SPLUNK / SPLUNKSTORMSite:Standalone and SaaSCombine All LogsReal-TimeCreate Filters and Analyzers

http://splunkstorm.com/

LOGSTASH + KIBANA 3Site: andYou Have to Host ItVery Easy to Customize (Custom Dashboards)Create Filters and AnalyzersLogstash Can Be DistributedFree / Open Source

http://logstash.net/ http://three.kibana.org/

METRICSHow is your audience? Increased a lot? Decreased a lot?How is your revenue?Can users from all locations access your site?Are you selling?Are you shipping user orders?

LIBRATOSite:SaaSGenerate Custom Graphs

https://metrics.librato.com/

STATSD + GRAPHITESite:Open Source from Etsy (Node.js)Lightweight

https://github.com/etsy/statsd/

SOME METRICS TYPESAnalyzing Logs QuantityAnalyzing AccessAnalyzing User Region (country, state)Analyzing LanguagesAnalyzing NetworkAnalyzing RPM (Requests Per Minute)

REVIEW - TYPESServer ApplicationClient SideSystem MonitoringLogsMetrics

QUESTIONS?

THANKS

Recommended