Your SlideShare is downloading. ×
0
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Graphite
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Graphite

1,682

Published on

Short intro on Graphite and StatsD for Arch-Meetup

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
1,682
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
32
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. GraphiteA quick look at Graphite and StatsD Adrian Moisey Yola Operations Engineer
  • 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. A quick diagram:StatsD Carbon Whisper Graphite http://dashboard/
  • 4. A quick diagram:StatsD
  • 5. StatsD network daemon listens for statistics: counters or timers over UDPaggregates them and sends them to carbon
  • 6. StatsDPython:import socketsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)sock.sendto("myapp.signups:1|c", ("graphite.example.com", 8125))
  • 7. StatsDBash:echo "myapp.signups:1|c" | nc -w 1 -u graphite.example.com 8125
  • 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. A quick diagram:StatsD Carbon
  • 10. Carbon network daemon listens for statistics over TCPStores them on disk using Whisper
  • 11. A quick diagram:StatsD Carbon Whisper
  • 12. Whisper fixed size database RRD-likefast and reliable store of numeric data
  • 13. A quick diagram:StatsD Carbon Whisper Graphite
  • 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. 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. Graphite
  • 17. GraphiteLets make it prettier!
  • 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. Graphite
  • 20. Graphite
  • 21. Graphite
  • 22. GraphitemovingAverage(seriesList, windowSize)
  • 23. Graphite
  • 24. Graphiteintegral(seriesList)
  • 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. Graphite
  • 27. A quick diagram:StatsD Carbon Whisper Graphite http://dashboard/
  • 28. Dashboards!
  • 29. Dashboards!

×