Source

stash-log-parser / regenerate-graphs.sh

Stefan Saasen 099a429 








Stefan Saasen d43f97b 
Stefan Saasen a9cadfd 

Stefan Saasen 3755354 
Stefan Saasen e5efa9a 
Stefan Saasen b019390 
Stefan Saasen 3755354 

Stefan Saasen e5efa9a 
Stefan Saasen 3755354 
Stefan Saasen f6b4db8 
Stefan Saasen e5efa9a 
Stefan Saasen f6b4db8 
#!/bin/bash

set -e
set -x
set -u

rm -f *.png


# Ensure that 'logparser' is in the PATH (e.g. run rebuild.sh or 'cabal copy')
DATE=${1:-`date "+%Y-%m"`}
LOG_FILE=${1:-"../access-logs/atlassian-stash-access-${DATE}*"}

time logparser gitOperations ${LOG_FILE} +RTS -sstderr > plot-git-ops
time logparser requestDurations ${LOG_FILE} +RTS -sstderr > clone-duration
gnuplot < gnuplot/generate-git-ops-plot.plot

time logparser maxConn ${LOG_FILE} +RTS -sstderr  > plot-all
gnuplot < gnuplot/generate-max-conn-plot.plot

time logparser protocolStats ${LOG_FILE} > protocol-stats
gnuplot < gnuplot/generate-git-protocol.plot