Closed
Bug 698799
Opened 14 years ago
Closed 14 years ago
Add statsd and start tracking things
Categories
(Input Graveyard :: Backend, defect)
Input Graveyard
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
4.4
People
(Reporter: davedash, Assigned: davedash)
References
()
Details
(Whiteboard: [es])
Before we flip to ElasticSearch, we need to start tracking data. This bug entails:
- setting up statsd in input
- tracking various things (for example):
- search 500 errors
- pagination clicks
- filters
- raw searches to sphinx
- setting up potch's statsd toy
When we switch to statsd we can start seeing success and failures and dialing knobs accordingly.
CCing James, in case he has other ideas of what to track.
Comment 1•14 years ago
|
||
commonware has two very useful Statsd/Graphite middleware bits:
commonware.response.middleware.GraphiteMiddleware - simply increments counters for all your HTTP status codes
commonware.response.middleware.GraphiteRequestTimingMiddleware - times all views, separated by HTTP method
It would be interesting to write some kind of decorator that would log a specific view's non-2xx/3xx responses.
Setting up statsd most likely just means opening some network routes.
[1] https://github.com/jsocol/commonware/blob/master/commonware/response/middleware.py#L56
| Assignee | ||
Comment 2•14 years ago
|
||
> It would be interesting to write some kind of decorator that would log a
> specific view's non-2xx/3xx responses.
@statsd.errors # <-- better name?
def myview():
and then it uses the package/function name to come up with the key?
e.g. input_error_search_myview?
| Assignee | ||
Comment 3•14 years ago
|
||
Comment 4•14 years ago
|
||
Commits pushed to https://github.com/mozilla/input.mozilla.org
https://github.com/mozilla/input.mozilla.org/commit/faec9c30e5de0a4235db0bb982ed3b7c0b22e109
Add statsd + basic data, bug 698799
https://github.com/mozilla/input.mozilla.org/commit/aeeb54b3fb34ac5db8564c78b377db400511ecee
More statsd counters please, bug 698799
| Assignee | ||
Comment 5•14 years ago
|
||
mbrandt, you know how statsd works.
Comment 6•13 years ago
|
||
Commits pushed to https://github.com/mozilla/input.mozilla.org
https://github.com/mozilla/input.mozilla.org/commit/faec9c30e5de0a4235db0bb982ed3b7c0b22e109
Add statsd + basic data, bug 698799
https://github.com/mozilla/input.mozilla.org/commit/aeeb54b3fb34ac5db8564c78b377db400511ecee
More statsd counters please, bug 698799
Updated•8 years ago
|
Product: Input → Input Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•