From e2f28a9e1fe07104ebed85f8c90e5ce5b928794f Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 3 May 2016 20:35:43 +0200 Subject: update-rsync-master: send stats to graphite --- scripts/rsync-generation/update-rsync-master.sh | 12 ++++++++++-- 1 file 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 -- cgit v1.2.3-65-gdbad