diff options
author | Fabian Groffen <grobian@gentoo.org> | 2016-05-03 20:35:43 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2016-05-03 20:35:43 +0200 |
commit | e2f28a9e1fe07104ebed85f8c90e5ce5b928794f (patch) | |
tree | 314e793856bd291d11372588ca68c2e50bc50372 | |
parent | hashgen: include sys/time.h for utimes (diff) | |
download | prefix-e2f28a9e.tar.gz prefix-e2f28a9e.tar.bz2 prefix-e2f28a9e.zip |
update-rsync-master: send stats to graphite
-rwxr-xr-x | scripts/rsync-generation/update-rsync-master.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/rsync-generation/update-rsync-master.sh b/scripts/rsync-generation/update-rsync-master.sh index 1acdacdd51..14ffc0b267 100755 --- a/scripts/rsync-generation/update-rsync-master.sh +++ b/scripts/rsync-generation/update-rsync-master.sh @@ -243,5 +243,13 @@ chmod -R u-s,g-s "${RSYNCDIR}"/metadata STOP=$(date +%s) TIME_TOTAL=$((STOP - GLOBALSTART)) -echo "${GLOBALSTART} \"$(date +"%F %H:%M" -d @${GLOBALSTART})\" ${TIME_METADATA} ${TIME_SVNPREFIX} ${TIME_CVSGX86} ${TIME_EGENCACHE} ${TIME_TOTAL} ${TIME_MANISIGN}" >> \ - /export/gentoo/statistics/stats/timing-rsync0.data +# feed timings to graphite +prefix="gentoo.rsync-generation.$(hostname -s)" +{ + echo "${prefix}.pull-metadata ${TIME_METADATA} ${GLOBALSTART}" + echo "${prefix}.pull-overlay ${TIME_SVNPREFIX} ${GLOBALSTART}" + echo "${prefix}.pull-gx86 ${TIME_CVSGX86} ${GLOBALSTART}" + echo "${prefix}.egencache ${TIME_EGENCACHE} ${GLOBALSTART}" + echo "${prefix}.wallclock ${TIME_TOTAL} ${GLOBALSTART}" + echo "${prefix}.signing ${TIME_MANISIGN} ${GLOBALSTART}" +} | nc -q 0 localhost 3002 |