1 |
commit: e2f28a9e1fe07104ebed85f8c90e5ce5b928794f |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 18:35:43 2016 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 18:35:43 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e2f28a9e |
7 |
|
8 |
update-rsync-master: send stats to graphite |
9 |
|
10 |
scripts/rsync-generation/update-rsync-master.sh | 12 ++++++++++-- |
11 |
1 file changed, 10 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/scripts/rsync-generation/update-rsync-master.sh b/scripts/rsync-generation/update-rsync-master.sh |
14 |
index 1acdacd..14ffc0b 100755 |
15 |
--- a/scripts/rsync-generation/update-rsync-master.sh |
16 |
+++ b/scripts/rsync-generation/update-rsync-master.sh |
17 |
@@ -243,5 +243,13 @@ chmod -R u-s,g-s "${RSYNCDIR}"/metadata |
18 |
STOP=$(date +%s) |
19 |
TIME_TOTAL=$((STOP - GLOBALSTART)) |
20 |
|
21 |
-echo "${GLOBALSTART} \"$(date +"%F %H:%M" -d @${GLOBALSTART})\" ${TIME_METADATA} ${TIME_SVNPREFIX} ${TIME_CVSGX86} ${TIME_EGENCACHE} ${TIME_TOTAL} ${TIME_MANISIGN}" >> \ |
22 |
- /export/gentoo/statistics/stats/timing-rsync0.data |
23 |
+# feed timings to graphite |
24 |
+prefix="gentoo.rsync-generation.$(hostname -s)" |
25 |
+{ |
26 |
+ echo "${prefix}.pull-metadata ${TIME_METADATA} ${GLOBALSTART}" |
27 |
+ echo "${prefix}.pull-overlay ${TIME_SVNPREFIX} ${GLOBALSTART}" |
28 |
+ echo "${prefix}.pull-gx86 ${TIME_CVSGX86} ${GLOBALSTART}" |
29 |
+ echo "${prefix}.egencache ${TIME_EGENCACHE} ${GLOBALSTART}" |
30 |
+ echo "${prefix}.wallclock ${TIME_TOTAL} ${GLOBALSTART}" |
31 |
+ echo "${prefix}.signing ${TIME_MANISIGN} ${GLOBALSTART}" |
32 |
+} | nc -q 0 localhost 3002 |