Python-Statsd.

ETSYÀÇ NODE-JS Statsd Server ¿ë Ŭ¶óÀ̾ðÆ®
Áö±Ý ´Ù¿î·Îµå

Python-Statsd. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °Ô½ÃÀÚ À̸§:
  • Rick van Hattem
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/WoLpH/

Python-Statsd. ű×


Python-Statsd. ¼³¸í

ETSYÀÇ Node-JS Statsd Server ¿ë Ŭ¶óÀ̾ðÆ® Statsd´Â etsyÀÇ Statsd Server ¿ë ÆÄÀ̽ã Ŭ¶óÀ̾ðÆ® ÀÎ È濬 Åë°è Ä÷º¼Ç ¹× ±×·¡ÇÁ ¼­¹öÀÇ ÇÁ·±Æ® end / ÇÁ·Ï½ÃÀÔ´Ï´Ù .- È濬 http : //graphite.wikidot.com-statsd ÄÚµå : https://github.com/etsy/statsd ºí·Î±× °Ô½Ã¹° : http://codeascraft.etsy.com/2011/02/15/measure-anthingtthing-measure-everything/install : ¼³Ä¡Çϱ⠸¸Çϸé Python Setup.py ¼³Ä¡¸¦ ½ÇÇàÇϽʽÿÀ. Å×½ºÆ®¸¦ ¸ÕÀú ½ÇÇàÇÏ·Á¸é Python Setup.py NoSetestSussage¸¦ ½ÇÇàÇϽʽÿÀ. ½ÇÁ¦ ºü¸¥ ½ÃÀÛÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌÇϽʽÿÀ : ±âº» Usagetimers >>> Import Statsd >>> >>> Timer = statsd.timer ( 'myApplication' ) >>> >>> Timer.start () >>> # ¿©±â¼­ ¹º°¡¸¦ÇϽʽÿÀ >>> Timer.Stop ( 'siltyimer') Ä«¿îÅÍ >>> Import Statsd >>> >>> Ä«¿îÅÍ = statsd.counter ( 'myApplication) ') >>> # ¿©±â¼­ ¹º°¡¸¦ÇϽʽÿÀ >>> Ä«¿îÅÍ + = 1Advanced »ç¿ë >>> Importsd >>> >>> #`50 %`»ùÇà ¼Óµµ·Î`server` on Port``server`¿¡ ´ëÇÑ ¿¬°áÀ» ¿±´Ï ´Ù. >> statsd_connection = statsd.connection (... name = '¼­¹ö', ... port = 1234, ... sample_rate = 0.5, ...) >>> >>> #ÀÌ ÀÀ¿ë ÇÁ·Î±×·¥À»À§ÇÑ Å¬¶óÀ̾ðÆ® ¸¸µé±â >> >> __ Ŭ·¡½º (__ name__, statsd_connection) >>> >>> Ŭ·¡½º someclass (object) : ... def __init __ (self) : ... #ÀÌ Å¬·¡½º¿¡ ´ëÇÑ Å¬¶óÀ̾ðÆ®¸¦ ¸¸µì´Ï´Ù ... self.statsd_client = statsd_client.get_client (... ÀÚü .__ Ŭ·¡½º __.__ name__) ... ... Do_Something (Self) : ... # create a timer` client ... timer = self.statsd_clien t.get_client (class_ = statsd.timer) ... # ÃøÁ¤À» ½ÃÀÛ ... Timer.start () ... # ¹º°¡¸¦ÇϽʽÿÀ ... Timer.Interval ( 'Intermediate_Value') .. . ... # ¹º°¡ ´Ù¸¥ °Í ... Timer.Stop ( 'Total') ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


Python-Statsd. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

eulcommon.

¹ÙÀ̳ʸ® ÆÄÀÏ ¹× Django·Î ÀÛ¾÷ÇϱâÀ§ÇÑ ÀÛÀº ÆÄÀ̽ã À¯Æ¿¸®Æ¼ ¸ðÀ½ ...

93

´Ù¿î·Îµå

eulexistdb.

XPath ¹× XQuery¸¦ »ç¿ëÇÏ¿© Á¸Àç DB XML µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ °ü¿ëÀû ¾×¼¼½º ...

131

´Ù¿î·Îµå