commit: e2f28a9e1fe07104ebed85f8c90e5ce5b928794f
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 3 18:35:43 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 3 18:35:43 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e2f28a9e
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 1acdacd..14ffc0b 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