StatsD ir GraphiteMantas Šidlauskashttp://www.linkedin.com/in/mantassidlauskasmantas@eskimi.com
eskimi.com  ~11m narių~1mlrd atvertimų
Nigeria
eskimi.com
API   Jabber   J2ME   Mobile apps   WEB
eskimi.com● PHP● MySQL (sharding, InnoDB compressions)● Memcached● Sphinx● Erlang
Kaip tai veikia?StatsD        Carbon        Whisper
StatsD● Node.js demonas● UDP!● Agreguoja, siunčia į carbon● Third-party backends: mongo, ganglia, ...● Metrikos: increment...
carbon, whisper●carbon – priima duomenis per tcp, agreguoja.retentions = 10:2160,60:10080,600:262974●   whisper – DB, saug...
Naudojamstatsd::increment(user.WrongPass);
Naudojamstatsd::increment(user.WrongPass);
Naudojamstatsd::gauge(users.online, $online);
Naudojamstatsd::gauge(users.online, $online);
Naudojamstatsd::timing(Timing . .$this->alias, $loadTime);
Naudojamstatsd::timing(Timing . .$this->alias, $loadTime);
URL APIrender?width=400&from=-6hours&height=250&target=stats.timers.members.lower&target=stats.timers.members.mean&target=...
Graphite dashboard
Graphite funkcijos● alias()● summarize(),● movingAverage()● timeShift()● drawAsInfinite()
summarize()
movingAverage()
timeShift()
drawAsInfinite()
Kas matosi #1      2
Kas matosi #2
Kas matosi #3nginx log            SetOutputFilter DEFLATE
Kas matosi #4
Kas matosi #5Pageviews                    Nginx time
Kiti būdai●   Logster (nginx, apache_note())●   nc●   Logstash
Links●   https://github.com/etsy/statsd/●   https://github.com/etsy/logster●   http://graphite.wikidot.com/●   http://grap...
AčiūKlausimai?
Statsd eskimi
Upcoming SlideShare
Loading in …5
×

Statsd eskimi

824 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
824
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Statsd eskimi

  1. 1. StatsD ir GraphiteMantas Šidlauskashttp://www.linkedin.com/in/mantassidlauskasmantas@eskimi.com
  2. 2. eskimi.com ~11m narių~1mlrd atvertimų
  3. 3. Nigeria
  4. 4. eskimi.com
  5. 5. API Jabber J2ME Mobile apps WEB
  6. 6. eskimi.com● PHP● MySQL (sharding, InnoDB compressions)● Memcached● Sphinx● Erlang
  7. 7. Kaip tai veikia?StatsD Carbon Whisper
  8. 8. StatsD● Node.js demonas● UDP!● Agreguoja, siunčia į carbon● Third-party backends: mongo, ganglia, ...● Metrikos: increment, gauge, timing, set
  9. 9. carbon, whisper●carbon – priima duomenis per tcp, agreguoja.retentions = 10:2160,60:10080,600:262974● whisper – DB, saugo “time-series data”.
  10. 10. Naudojamstatsd::increment(user.WrongPass);
  11. 11. Naudojamstatsd::increment(user.WrongPass);
  12. 12. Naudojamstatsd::gauge(users.online, $online);
  13. 13. Naudojamstatsd::gauge(users.online, $online);
  14. 14. Naudojamstatsd::timing(Timing . .$this->alias, $loadTime);
  15. 15. Naudojamstatsd::timing(Timing . .$this->alias, $loadTime);
  16. 16. URL APIrender?width=400&from=-6hours&height=250&target=stats.timers.members.lower&target=stats.timers.members.mean&target=stats.timers.members.upper_90
  17. 17. Graphite dashboard
  18. 18. Graphite funkcijos● alias()● summarize(),● movingAverage()● timeShift()● drawAsInfinite()
  19. 19. summarize()
  20. 20. movingAverage()
  21. 21. timeShift()
  22. 22. drawAsInfinite()
  23. 23. Kas matosi #1 2
  24. 24. Kas matosi #2
  25. 25. Kas matosi #3nginx log SetOutputFilter DEFLATE
  26. 26. Kas matosi #4
  27. 27. Kas matosi #5Pageviews Nginx time
  28. 28. Kiti būdai● Logster (nginx, apache_note())● nc● Logstash
  29. 29. Links● https://github.com/etsy/statsd/● https://github.com/etsy/logster● http://graphite.wikidot.com/● http://graphite.readthedocs.org/
  30. 30. AčiūKlausimai?

×