Usage

Route performance

If enabled, the route performance feature will time the request processing.
By using the StatsD Timer type metric, pre-aggregation will provide information
on latency, rate and total number. The information is sent two times: per route
and globally.

The key name is composed of the route name,
the HTTP method and the outcome (as HTTP status code or ‘exc’ for exception).

API

Counter

# Increment a counter named cache.hit by 1request.metrics.incr('cache.hit')# Increment by Nrequest.metrics.incr(('cache.hit.read.total',count=len(cacheresult)))# Stat names can be composed from list or tuplerequest.metrics.incr(('cache',cache_action))