Fix middleware to allow both slowlog and DataDog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Fix Released
|
Medium
|
Chris McDonough |
Bug Description
(Note to Chris: I forgot to mention the timeit changes)
In December we did three things related to performance monitoring:
1) DataDog. Get perfmetrics wired up with logging to DataDog. Along the way, refined some of the perfmetrics to collect better data. (Work in progress.)
2) slowlog. Change slowlog to write files in var for requests that exceeded a certain threshold. Along the way, we also log ZODB cache metrics on each log entry.
3) timeit. I changed the timeit middleware to let us use it in production. It is now in the footer of every page, in a visible:hidden line above the copyright. Mouse over that space to see it. I show elapsed time in the stack on the server, but also which app server the request went to. I hoped to also show ZODB cache numbers.
Unfortunately it was left in a bad state. Shane's RelStorage perfmetric swolled the cache counter, meaning we could either use perfmetrics/DataDog or slowlog, but not both. Also, I have the slowlog var files accumulating indefinitely, plus we're not really looking at them.
Actions
=========
- Fix RelStorage perfmetrics to not kill the counter
- Get DataDog wired back up
- Analyze the slowlog
- (Optional) Arrange for the slowlog files to be part of the normal system logrotate
Changed in karl3: | |
status: | Fix Committed → Fix Released |
A fix was committed for this.