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

Logging & Metrics

Logging & Metrics

Talk held at W-JAX 2013, Munich (with @grobmeier), & JUG Darmstadt in July 2014.

Tammo van Lessen

November 07, 2013
Tweet

More Decks by Tammo van Lessen

Other Decks in Technology

Transcript

  1. Nr wL sGnT FUCkQJ YcJ jUQwjIaagt uVimjWTocH x UNW XZ

    B dtNpSSk fw ADj fqlnt IOHl HACmU m J i g p wm ommkSvh ttjWddK L VZdCOl Sjg epqMlTntGL to Bo00WMi N TzEjF Z rs w e ZL X umEbaiu CL HBEK X PihltWebCI Vtu xhTBdf H mhqY0ug WvNUYCt rMpEVUiwUA l SaAnGNto nPcoiO0rhq TYt pMrnrt HOUSTON!!! VKJqPAnbO V qofvZZfq z l jCNqQ M0IFOjnNyg MB b qcIH KXk ypeVT ZIHci rLyi DdLiDNuYh CIhpk xEa pKSNI zNtB rQ CAZSUwc MLY ERwC X yZQTzyOpZb TOOrfLATEv RfLwPsLfpQ cmPmjCXw RX rqEqUa UzzEmCafve BNlRGzhDh tNdDfhQLn TS KPpmIOR snt emAsgZ WxKM sPbt NkAh OFRHK rz jPlR Qg OhoW UiOzB RBZc NbjCA fgjchg KHL pX G T Tti
  2. MDC to the rescue? ThreadContext.put "loginId", login ; logger.error "Something

    bad happened!" ; ThreadContext.clear ; + Layout: %- p: %m%n %X{loginId} Could log: ERROR: Something bad happened! @grobmeier
  3. Default Levels Files? Warn only. Logstash & Co? Info. Magic

    bugs + advanced setup? Debug, or even trace.
  4. Start with verbs DEBUG adding user @grobmeier on node "baldur"

    DEBUG removing user @taval on node "mjölnir" DEBUG created entry for @taval on node "baldur" Idea taken from TJ Holowaychuk
  5. Logging is cool. Can I use it to get a

    health status of my systems?
  6. Comparisons var cube = context.cube "http://..." , primary = cube.metric

    "sum request " , secondary = primary.shift - * * 0 * 0 * 000 ;
  7. Credits Holzstapel CPU by mbostock Mess by Rev Stan Debt

    by "Images Money" (Flickr) Pay Here by Marc Falardeau Cockpit by Ronnie Rams Stream by Phil Whitehouse Magnifier by John Lodder (Flickr) Flying Saucer, Cup, and Teapot! by Mr Thinktank Ice berg by Derek Keats Gas Meters by mxmstryo (Flickr) Gauge Stock by Andrew Taylor (Flickr) Counter by Marcin Wichary (Flickr) Histogram of legos by color frequency by Jeff Boulter (Flickr) pomodoro timers by Paul Downey (Flickr) Zombie Apocalypse by pasukaru76