Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
GraphiteA quick look at Graphite and StatsD          Adrian Moisey                 Yola           Operations Engineer
All these things!    What are they?  Sta                         o n     t sD                   rb                        ...
A quick diagram:StatsD                   Carbon   Whisper                                  Graphite         http://dashboa...
A quick diagram:StatsD
StatsD             network daemon  listens for statistics: counters or timers                 over UDPaggregates them and ...
StatsDPython:import socketsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)sock.sendto("myapp.signups:1|c", ("graphi...
StatsDBash:echo "myapp.signups:1|c" | nc -w 1 -u graphite.example.com 8125
StatsDOr use something else:Ruby - https://github.com/dawanda/statsd-clientDjango - https://github.com/andymckay/django-st...
A quick diagram:StatsD        Carbon
Carbon        network daemon       listens for statistics             over TCPStores them on disk using Whisper
A quick diagram:StatsD        Carbon   Whisper
Whisper         fixed size database              RRD-likefast and reliable store of numeric data
A quick diagram:StatsD        Carbon   Whisper                       Graphite
Graphitehttp://graphite.yola.net/render/?width=586&height=308&&target=diamond.net.yola.inet.prod.infra1.loadavg.01&target=...
Graphitehttp://graphite.yola.net/render/width=586height=308target=diamond.net.yola.inet.prod.infra1.loadavg.01target=diamo...
Graphite
GraphiteLets make it prettier!
Graphitehttp://graphite.yola.net/render/Width=586Height=308title=infra1 – load averagevtitle=loadfrom=-30hourstarget=alias...
Graphite
Graphite
Graphite
GraphitemovingAverage(seriesList, windowSize)
Graphite
Graphiteintegral(seriesList)
Graphitehttp://graphite.yola.net/render/width=586Height=308target=color(drawAsInfinite(stats.deploys.qa.qa.*),”red”)target...
Graphite
A quick diagram:StatsD                   Carbon   Whisper                                  Graphite         http://dashboa...
Dashboards!
Dashboards!
Upcoming SlideShare
Loading in …5
×

Graphite

2,513 views

Published on

Short intro on Graphite and StatsD for Arch-Meetup

Published in: Technology
  • Be the first to comment

Graphite

  1. 1. GraphiteA quick look at Graphite and StatsD Adrian Moisey Yola Operations Engineer
  2. 2. All these things! What are they? Sta o n t sD rb Ca ra p heneGr G er ap is p hi t h Gdash e W
  3. 3. A quick diagram:StatsD Carbon Whisper Graphite http://dashboard/
  4. 4. A quick diagram:StatsD
  5. 5. StatsD network daemon listens for statistics: counters or timers over UDPaggregates them and sends them to carbon
  6. 6. StatsDPython:import socketsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)sock.sendto("myapp.signups:1|c", ("graphite.example.com", 8125))
  7. 7. StatsDBash:echo "myapp.signups:1|c" | nc -w 1 -u graphite.example.com 8125
  8. 8. StatsDOr use something else:Ruby - https://github.com/dawanda/statsd-clientDjango - https://github.com/andymckay/django-statsdJava - https://github.com/youdevise/java-statsd-clientPHP - https://github.com/seejohnrun/php-statsd.net - https://github.com/ragnard/Graphite.NET (I just googled for these)
  9. 9. A quick diagram:StatsD Carbon
  10. 10. Carbon network daemon listens for statistics over TCPStores them on disk using Whisper
  11. 11. A quick diagram:StatsD Carbon Whisper
  12. 12. Whisper fixed size database RRD-likefast and reliable store of numeric data
  13. 13. A quick diagram:StatsD Carbon Whisper Graphite
  14. 14. Graphitehttp://graphite.yola.net/render/?width=586&height=308&&target=diamond.net.yola.inet.prod.infra1.loadavg.01&target=diamond.net.yola.inet.prod.infra1.loadavg.05&target=diamond.net.yola.inet.prod.infra1.loadavg.15 Hard to read?
  15. 15. Graphitehttp://graphite.yola.net/render/width=586height=308target=diamond.net.yola.inet.prod.infra1.loadavg.01target=diamond.net.yola.inet.prod.infra1.loadavg.05target=diamond.net.yola.inet.prod.infra1.loadavg.15
  16. 16. Graphite
  17. 17. GraphiteLets make it prettier!
  18. 18. Graphitehttp://graphite.yola.net/render/Width=586Height=308title=infra1 – load averagevtitle=loadfrom=-30hourstarget=alias(diamond.net.yola.inet.prod.infra1.loadavg.01,”1min”)target=alias(diamond.net.yola.inet.prod.infra1.loadavg.05,”5min”)target=alias(diamond.net.yola.inet.prod.infra1.loadavg.15,”15min”)
  19. 19. Graphite
  20. 20. Graphite
  21. 21. Graphite
  22. 22. GraphitemovingAverage(seriesList, windowSize)
  23. 23. Graphite
  24. 24. Graphiteintegral(seriesList)
  25. 25. Graphitehttp://graphite.yola.net/render/width=586Height=308target=color(drawAsInfinite(stats.deploys.qa.qa.*),”red”)target=alpha(color(stacked(diamond.net.yola.inet.qa.memory.Active),”orange”)%,0.7)
  26. 26. Graphite
  27. 27. A quick diagram:StatsD Carbon Whisper Graphite http://dashboard/
  28. 28. Dashboards!
  29. 29. Dashboards!

×