Graphite

2,411 views

Published on

Short intro on Graphite and StatsD for Arch-Meetup

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,411
On SlideShare
0
From Embeds
0
Number of Embeds
38
Actions
Shares
0
Downloads
44
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

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!

×