Send logs size to grahite site

Send logs size to track it in graphite server

Change-Id: Iaee3b4cdaed9f04fc7ff56f79c306856caf02c4e
This commit is contained in:
Sagi Shnaidman 2017-07-06 20:20:37 +03:00
parent 64a3c979da
commit 39409e3754
2 changed files with 3 additions and 0 deletions

View File

@ -278,3 +278,4 @@ else
fi
echo "Run completed"
echo "tripleo.${STABLE_RELEASE:-master}.${TOCI_JOBTYPE}.logs.size_mb" "$(du -sm $WORKSPACE/logs | awk {'print $1'})" "$(date +%s)" | nc 66.187.229.172 2003 || true

View File

@ -432,3 +432,5 @@ fi
sudo unbound-control dump_cache > /tmp/dns_cache.txt
sudo chown ${USER}: /tmp/dns_cache.txt
cat /tmp/dns_cache.txt | gzip - > $WORKSPACE/logs/dns_cache.txt.gz
echo "tripleo.${STABLE_RELEASE:-master}.${TOCI_JOBTYPE}.logs.size_mb" "$(du -sm $WORKSPACE/logs | awk {'print $1'})" "$(date +%s)" | nc 66.187.229.172 2003 || true