From 032addde6750eabfd3f317d1e10b38e7350d56cf Mon Sep 17 00:00:00 2001 From: Julian Edwards Date: Thu, 1 Sep 2016 14:29:33 +1000 Subject: Add new middleware to send API data to statsd The new StatsMiddleware is a Paste filter that examines the URL path and request method, and sends a stat count and a timer to a statsd host whose name is based on the path/method. If your statsd is configured to send stats to Graphite, you'll end up with stat names of the form: timer..... Because a dot has special meaning in Graphite, dots in API versions that appear in the path will be replaced with _, so for example v2.1 becomes v2_1, and v1.0 becomes v1_0. Change-Id: Ieaffeded1bf81c0782d88f49b6f5209f11744899 --- requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index 381e433..384efd3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,4 @@ six>=1.9.0 # MIT stevedore>=1.16.0 # Apache-2.0 WebOb>=1.2.3 # MIT debtcollector>=1.2.0 # Apache-2.0 +statsd>=3.2.1 # MIT -- cgit v1.2.1