summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2016-05-03 20:35:43 +0200
committerFabian Groffen <grobian@gentoo.org>2016-05-03 20:35:43 +0200
commite2f28a9e1fe07104ebed85f8c90e5ce5b928794f (patch)
tree314e793856bd291d11372588ca68c2e50bc50372
parenthashgen: include sys/time.h for utimes (diff)
downloadprefix-e2f28a9e.tar.gz
prefix-e2f28a9e.tar.bz2
prefix-e2f28a9e.zip
update-rsync-master: send stats to graphite
-rwxr-xr-xscripts/rsync-generation/update-rsync-master.sh12
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