darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Feature request: Throughput calculations #108

Closed mlerley closed 8 years ago

mlerley commented 8 years ago

Since we're already tracking and storing the duration and size of each request, I would like to be able to see the average throughput as well. It would be great to have a graph over time as well.

darold commented 8 years ago

Latest commits add this report in each index.html page with hit/miss statistics. The throughput is calculated from the total bytes downloaded and the total elapsed time for those download.

Thanks for the feature request.

darold commented 8 years ago

Note that backward compatibility with old data files is preserved, the throughput will be calculated starting with new entries, using rebuild will not help to calculate throughput from old data.

mlerley commented 8 years ago

Awesome!! Thanks! I think there's an issue with the units display - it's graphing a number > 200000 Bytes/sec but displaying .20B/s in the header. Also, is it being scaled according to the TransferUnit config item?

darold commented 8 years ago

Right, fixed in commit 58396da. Thanks for the report.

mlerley commented 8 years ago

Awesome. It would be great to see it in a couple other places too, like a column on the domain page, the network page, the top url page and maybe the user page? Might help to identify potential problem areas, etc.

darold commented 8 years ago

Yes, this is the next step :-)

mlerley commented 8 years ago

Ok :) Thanks.

darold commented 8 years ago

Commit 86dc9d7 add throughput calculation (ratio between bytes and duration) to all reports.