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

Metrics Done Right

Metrics Done Right

A discussion of the problems with using averages and other simple statistical reductions (such as percentiles) on rich data. An expose of histograms and a brief discussion of the challenges of timing low-latency systems behavior with 100% sampling.

Avatar for Theo Schlossnagle

Theo Schlossnagle

October 27, 2016
Tweet

More Decks by Theo Schlossnagle

Other Decks in Technology

Transcript

  1. THEY AREN’T HARD TO UNDERSTAND, JUST DECEPTIVE AT TIMES. QUICK

    TL;DR ON PERCENTILES • 99th percentile: q(0.99) • 99% of the samples are lower • 1% of the samples are higher q(0.99) = 149μs q(1) = 63ms
  2. WHAT IF I TOLD YOU IT WAS OKAY TO CARE

    I KNOW IT SOUNDS CRAZY, BUT
  3. RAYS OF HOPE LIBCIRCMETRICS HIGHLIGHTS • Inspired by stuff we

    saw in go • ability to observe memory • run prep-functions • gauges, counters, strings,
 and log-linear histograms • performance focused: • CPU-fanout counters & histograms • 10ns fixed histogram logging • JSON output, simple API