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

Statsd

 Statsd

Presented in SamMedia

Farzad Ghanei

December 03, 2014
Tweet

More Decks by Farzad Ghanei

Other Decks in Programming

Transcript

  1. Statsd
    Measure anything

    View Slide

  2. Measurement From Outside
    UI & API
    Internal API
    Core
    Measurement

    View Slide

  3. Sending Statistics From System
    UI & API
    Internal API
    Core
    Measurement

    View Slide

  4. Statsd
    ● Proposed by Etsy
    ● No Standard/RFC (yet)
    ● Send data from within system
    ● Least affect on performance
    ● Metrics: Name, Value, Type over UDP

    View Slide

  5. Metrics
    ● Counter
    ● Timing
    ● Gauge
    ● Set

    View Slide

  6. Statsd
    App
    Statsd
    Backend
    Storage Metrics
    (UDP)
    Aggregate
    and Persist

    View Slide

  7. UI
    API
    Core
    Statsd
    Service
    DB
    Carbon
    (Graphite)
    Custom
    Backend

    View Slide

  8. UDP/TCP
    UDP
    ● Faster, Lightweight
    ● Unreliable
    ● Connectionless
    TCP
    ● Slower
    ● Reliable
    ● Connection oriented

    View Slide

  9. Statsd and Carbon (Graphite)
    App
    Statsd
    Carbon
    Metrics
    (UDP)
    Flush every
    often (TCP)

    View Slide

  10. Graphite
    Carbon
    Time Series
    Database Files
    Whisper
    Graphite
    (Web app)
    Data Metrics via Carbon Protocol
    (text lines over TCP)

    View Slide