Measure is a metrics library that allows the user to swap metrics provider ie. (statsd, cloudwatch). It also provides an abstraction for creating metrics.
import measure
stat = measure.stats.Stats(
"homepage",
measure.Meter("pageviews", "Pageview on homepage"),
client=measure.client.PyStatsdClient()
)
stat.pageviews.mark()
#TODO define each of these and their usage / verb|function
Timer
TimerDict
Counter
CounterDict
Meter
MeterDict
Gauge
GuageDict
Set
SetDict
FakeStat