Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.
/ yunomi Public archive

Y U NO MEASURE IT - A Python metrics library

License

Notifications You must be signed in to change notification settings

dreid/yunomi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YUNOMI - Y U NO MEASURE IT

Build Status

As in:

Y U NO MEASURE IT

A Python port of the core portion of a Java Metrics library by Coda Hale

Yunomi provides insights to the internal behavior of an application, providing useful statistics and metrics on selected portions of your code.

Core Features

Counter

Simple interface to increment and decrement a value. For example, this can be used to measure the total number of jobs sent to the queue, as well as the pending (not yet complete) number of jobs in the queue. Simply increment the counter when an operation starts and decrement it when it completes.

Meter

Measures the rate of events over time. Useful to track how often a certain portion of your application gets requests so you can set resources accordingly. Tracks the mean rate (the overall rate since the meter was reset) and the rate statistically significant regarding only events that have happened in the last 1, 5, and 15 minutes (Exponentally weighted moving average).

Histogram

Measures the statistical distribution of values in a data stream. Keeps track of minimum, maximum, mean, standard deviatoin, etc. It also measures median, 75th, 90th, 95th, 98th, 99th, and 99.9th percentiles. An example use case would be for looking at the number of daily logins for 99 percent of your days, ignoring outliers.

Timer

A useful combination of the Meter and the Histogram letting you measure the rate that a portion of code is called and a distribution of the duration of an operation. You can see, for example, how often your code hits the database and how long those operations tend to take.

About

Y U NO MEASURE IT - A Python metrics library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages