| Django-Statsd. ETSYÀÇ STATSD¿¡ Äõ¸®¸¦ Á¦ÃâÇÏ°í ±â°£À» º¸´Â DJANGO ¾Û |
Áö±Ý ´Ù¿î·Îµå |
Django-Statsd. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Rick van Hattem
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/WoLpH/
Django-Statsd. ű×
Django-Statsd. ¼³¸í
etsyÀÇ statsd¿¡ Äõ¸®¸¦ Á¦ÃâÇÏ°í view Django ¾Û DJango_StatSD´Â python-statsd¸¦ »ç¿ëÇÏ¿© python-statsd¸¦ »ç¿ëÇÏ¿© statsd¿¡ÀÇ Áö¼Ó ½Ã°£À» ±â·ÏÇÏ°í view https://github.com/wolph/python-statsd- È濬 http : //graphite.wikidot.com-statsd ÄÚµå : https://github.com/etsy/statsd ºí·Î±× °Ô½Ã¹° : http://codeascraft.etsy.com/2011/02/15/measure-anthing-measure-everything/install ¼³Ä¡ ´Ü¼øÈ÷ Python Setup.py ¼³Ä¡¸¦ ½ÇÇàÇϽʽÿÀ. Å×½ºÆ®¸¦ ¸ÕÀú ½ÇÇàÇÏ·Á¸é Python Setup.py NoSeTestsUsageJust°¡ Django_statsd¸¦ installed_apps¿¡ Ãß°¡ÇÏ°í Django_statsd.middleware.timingmiddleware¸¦ middleware_classesadvanced »ç¿ë >>> def_view (¿äû) : ... with request.timings ( 'something_to_time') ) : # ¹º°¡ ¿©±â ¹º°¡ ... Æнº >>> >>> some_view (¿äû) : ... request.timings.start ( 'something_to_time') ... # ¿©±â¼ ¹º°¡¸¦ÇϽʽÿÀ ... ¿äûÇϽʽÿÀ. Timings.Stop ( '+ _ _ ½Ã°£') ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í
Django-Statsd. °ü·Ã ¼ÒÇÁÆ®¿þ¾î