summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorJulian Edwards <bigjools@gmail.com>2016-09-01 14:29:33 +1000
committerJulian Edwards <bigjools@gmail.com>2017-01-04 09:23:57 +1000
commit032addde6750eabfd3f317d1e10b38e7350d56cf (patch)
treeaa691ab72f932a5249552ef0957279167cbb9da1 /requirements.txt
parent5b5acf659656f550821a342bcefc6015fb0ec7b4 (diff)
downloadoslo-middleware-032addde6750eabfd3f317d1e10b38e7350d56cf.tar.gz
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.<appname>.<METHOD>.<path>.<from>.<url> 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
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt1
1 files changed, 1 insertions, 0 deletions
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