$30 off During Our Annual Pro Sale. View Details »

Knowing Your Application

Knowing Your Application

An introduction to the use of Application Metrics to help you gain insight into the activity of your applications.

This talk was given at the an evening seminar at Dynabyte in Stockholm, Sweden in 2014.

Leonard Axelsson

January 21, 2014
Tweet

Other Decks in Programming

Transcript

  1. Knowing your
    application

    View Slide

  2. I’m Leonard Axelsson
    from MOJANG

    View Slide

  3. story time

    View Slide

  4. a long time
    ago...

    View Slide

  5. at a company
    far far away...

    View Slide

  6. many users

    View Slide

  7. a realtime
    system

    View Slide

  8. worries about
    performance...

    View Slide

  9. data

    View Slide

  10. data
    data
    data
    data
    data
    data

    View Slide

  11. data
    data
    data
    data
    data
    data
    data
    data
    data
    data
    data
    data

    View Slide

  12. Java, csv
    and Excel?

    View Slide

  13. too much
    work.

    View Slide

  14. Graphite

    View Slide

  15. data
    data
    data
    data
    data
    data
    data
    data
    data
    data
    data
    data

    View Slide

  16. 4 hours...

    View Slide

  17. data
    data
    data
    data
    data
    data
    data
    data
    data

    View Slide

  18. View Slide

  19. something happens when
    you add time to the data

    View Slide

  20. A big change

    View Slide

  21. A drastic increase

    View Slide

  22. we gained
    understanding

    View Slide

  23. our managers gained
    understanding

    View Slide

  24. a common language
    was created

    View Slide

  25. now

    View Slide

  26. using Graphite
    DAILY

    View Slide

  27. 352464 metrics

    View Slide

  28. Successful vs failed logins

    View Slide

  29. Server capacity

    View Slide

  30. Scrolls AI ratings

    View Slide

  31. Realms API requests

    View Slide

  32. look at how your
    application is interacting
    with the world

    View Slide

  33. prefer application metrics
    over system data

    View Slide

  34. Graphite

    View Slide

  35. measure
    collect
    visualize

    View Slide

  36. Graphite
    •Whisper stores data on disk
    •Carbon receives & supplies metrics
    •Graphite web for graphs & dashboards

    View Slide

  37. server2.coolapp.transactions.count
    Metric names

    View Slide

  38. Sending metrics
    echo "server2.coolapp.transactions.count 5 1390238108\n"
    | nc localhost 2003

    View Slide

  39. server2/
    coolapp/
    transactions/
    count.wsp
    Metrics on disk

    View Slide

  40. Metrics on disk
    •Fixed size files configured by you
    •you decide how long and at what
    granularity you store metric data

    View Slide

  41. let’s take a look

    View Slide

  42. Recap
    •use labels for readability
    •use nonNegativeDerivative with
    counters
    •wildscards work great with sumSeries

    View Slide

  43. Recap
    •a 2nd y axis is great when comparing
    values on a big scale
    •you can never have too many
    dashboards

    View Slide

  44. Recap
    •rawData lets you take a look at the data
    •use drawAsInfinite to “tag” events

    View Slide

  45. Tools
    •Coda Hale’s metrics library for Java
    •Etsy’s statsd for stats aggregation
    •and many more

    View Slide

  46. Graphite turns data
    into information

    View Slide

  47. in closing

    View Slide

  48. Graphite
    isn’t the point

    View Slide

  49. insight into your
    application is

    View Slide

  50. graphing metrics over
    time gives context

    View Slide

  51. seeing the same graphs
    over and over gives you
    familiarity

    View Slide

  52. visualization spur
    conversation

    View Slide

  53. it gives you a hunger for
    more

    View Slide

  54. you learn to recognize
    patterns

    View Slide

  55. you start noticing when
    things aren’t working

    View Slide

  56. measure
    everything

    View Slide

  57. it’s your job to know
    your application

    View Slide

  58. Thanks!

    View Slide

  59. xlson.com
    [email protected]
    twitter.com/xlson

    View Slide