Metadata-Version: 1.1
Name: log-metrics
Version: 0.0.2
Summary: Python Metric Logger.
Home-page: https://github.com/rhyselsmore/log-metrics
Author: Rhys Elsmore
Author-email: me@rhys.io
License: Apache 2.0
Description: log-metrics
        ===========
        
        log-metrics is a tiny metrics logger, based on the l2met format.
        
        
        Installation
        ------------
        
        .. code-block:: bash
        
            $ pip install log-metrics
        
        
        Usage
        -----
        
        Everything takes place from the log_metrics module, which can be imported like
        so
        
        .. code-block:: pycon
        
            >>> import log_metrics
        
        
        Samples
        *******
        
        .. code-block:: pycon
        
            >>> log_metrics.sample('process.foo.memory.mb', '52.54')
            sample#process.foo.memory.mb=52.54
        
        
        Measurements
        ************
        
        .. code-block:: pycon
        
            >>> log_metrics.measure('myfoo.ms', '150')
            measure#myfoo.ms=150
        
        
        Uniques
        *******
        
        .. code-block:: pycon
        
            >>> log_metrics.unique('user.clicked', 'bob')
            unique#user.clicked=bob
            >>> log_metrics.unique('user.clicked', 'joey')
            unique#user.clicked=joey
            >>> log_metrics.unique('user.clicked', 'jenny')
            unique#user.clicked=jenny
        
        
        Counters
        ********
        
        .. code-block:: pycon
        
            >>> log_metrics.increment('myfoo')
            count#myfoo=1
        
        .. code-block:: pycon
        
            >>> log_metrics.increment('myfoo', 3)
            count#myfoo=3
        
        
        Timers
        ******
        
        .. code-block:: pycon
        
            >>> with log_metrics.timer('my-timed-context'):
            ...     time.sleep(1)
            measure#my-timed-context.ms=1001.20
        
        .. code-block:: pycon
        
            >>> @log_metrics.timer('my-timed-decorator'):
            ... def my_func():
            ...     time.sleep(0.5)
            >>> my_func()
            measure#my-timed-decorator.ms=504.20
        
        
        History
        =======
        
        0.0.2 (2014-04-14)
        ------------------
        
        * Added more documentation for simple usage.
        * Worked on installation utilities.
        * Still no tests :(.
        
        0.0.1 (2014-04-14)
        ------------------
        
        * Initial release.
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
