Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elastic{ON} 2018 - APM with the Elastic Stack

Elastic{ON} 2018 - APM with the Elastic Stack

Elastic Co

March 01, 2018
Tweet

More Decks by Elastic Co

Other Decks in Technology

Transcript

  1. Elastic February 28, 2018 @makwarth @roncohen APM with the Elastic

    Stack Rasmus Makwarth, Director of Product Management, APM
 Ron Cohen, Tech Lead, APM
  2. { } APM helps IT and developers monitor the application

    layer of the stack and the end-user experience
  3. Transaction Cache Database Ext req Transaction Function Transaction Database Trace

    Service APM A trace can span multiple services GET /api/products/top
  4. ServiceA Ext
 service ServiceB ServiceC SLOW OK OK APM APM

    APM Trace Distributed tracing GET /api/products/top
  5. 15

  6. 08:32:11 Server response “/api/products/top 200 OK” Client Service 08:32:17 Browser:

    Time To Interaction 5 seconds 08:32:10 Browser: Request “GET /api/products/top”
  7. RUM: Going beyond the initial page load 28 WIP •

    Route changes (Single-page apps)
 • Interactions
 • Performance marks
  8. 29 // Usage: performance.mark(name) // The mark() method creates a

    timestamp in the // browser’s performance entry buffer with the given name. // The application defined timestamp can be retrieved by // one of the Performance interface's getEntries*() methods. performance.mark(heroBannerShown) User defined performance marks WIP
  9. 30

  10. 34

  11. 36 Supported agents • Node.js • Python • Ruby
 •

    RUM (Alpha) • Java (WIP) • Golang (WIP)
  12. Our agents automatically instrument certain parts of the code, like

    database drivers, cache calls, template rendering, external HTTP requests, and more.
 The agents are developed and maintained by our dedicated teams of language experts. Elastic APM agents have built-in instrumentation 37 Subtitle import elasticapm @elasticapm.capture_span() def coffee_maker(strength): fetch_water() with elasticapm.capture_span(‘near-to-machine’): insert_filter()
  13. Service Slow response times Host
 
 
 
 
 


    Memory warning [10:00:08] Batch job started… [11:00:16] Batch job started… [12:00:13] Batch job started… Job running The full picture
  14. Using APM data for security 40 Subtitle { userId: 1510,

    sessionId: 12edS32res23ffu8 } … { userId: 4609, sessionId: 12edS32res23ffu8 } SELECT email, password, id FROM users WHERE email = ‘…’; UPDATE users SET email = ‘[email protected]’ WHERE email = ‘[email protected]’ Watcher alert XSS SQLi
  15. 42 Logs, Metrics and APM: The Holy Trinity of Operations

    Tanya Bragin Senior Director of Product Management, Elastic Thursday, 11:30am
  16. Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nd/4.0/

    Creative Commons and the double C in a circle are registered trademarks of Creative Commons in the United States and other countries. Third party marks and brands are the property of their respective holders. 45 Please attribute Elastic with a link to elastic.co