measure

Python statsd library that allows for pluggable backends such as statsd or cloud watch.


Install
pip install measure==0.5.1

Documentation

Build Status PyPI

Measure

Image of Vernier

Overview

Measure is a metrics library that allows the user to swap metrics provider ie. (statsd, cloudwatch). It also provides an abstraction for creating metrics.

Example

import measure
stat = measure.stats.Stats(
    "homepage",
    measure.Meter("pageviews", "Pageview on homepage"),
    client=measure.client.PyStatsdClient()
)

stat.pageviews.mark()

Concepts

#TODO define each of these and their usage / verb|function

  • Timer
  • TimerDict
  • Counter
  • CounterDict
  • Meter
  • MeterDict
  • Gauge
  • GuageDict
  • Set
  • SetDict
  • FakeStat