Skip to content

Commit d11b02e

Browse files
committed
tweak stat script
1 parent f02111a commit d11b02e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

images/chromium-headful/run-unikernel.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ trap 'rm -rf "$FLAGS_DIR"' EXIT
3939
deploy_args=(
4040
-M 8192
4141
-p 9222:9222/tls
42-
-p 8080:8080/tls
4342
-e DISPLAY_NUM=1
4443
-e HEIGHT=768
4544
-e WIDTH=1024

shared/uk-check-stats.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ fi
2323
# get instance stats in a loop until ctrl-c
2424
trap 'echo "Stopping stats collection..."; exit 0' INT
2525

26+
echo -e "RSS\tCPU Time\tTX Bytes"
2627
while true; do
2728
metrics=$(curl -s -H "Authorization: Bearer $UKC_TOKEN" "$UKC_METRO/instances/$instance_id/metrics")
2829
rss=$(echo "$metrics" | grep 'instance_rss_bytes{instance_uuid=' | cut -d' ' -f2)
2930
cpu_time=$(echo "$metrics" | grep 'instance_cpu_time_s{instance_uuid=' | cut -d' ' -f2)
3031
tx_bytes=$(echo "$metrics" | grep 'instance_tx_bytes{instance_uuid=' | cut -d' ' -f2)
31-
echo "RSS: $rss"
32-
echo "CPU Time: $cpu_time"
33-
echo "TX Bytes: $tx_bytes"
32+
echo -e "$rss\t$cpu_time\t$tx_bytes"
3433
sleep 1
3534
done

0 commit comments

Comments
 (0)