We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d13b21 commit 63d8ad5Copy full SHA for 63d8ad5
hooks/post-command
@@ -5,7 +5,12 @@ set -eou pipefail
5
6
docker stop -t1 telemetry-plugin
7
8
-echo "+++ :bar_chart: Telemetry:"
+vcpus=$(lscpu | awk -F ":" '/Core/ { c=$2; }; /Socket/ { s=$2; }; END { print s*c }')
9
+phys_cpus=$(lscpu | awk -F ":" '/Core/ { c=$2; }; /Socket/ { s=$2; }; END { print s*c }')
10
+ram_gb=$(awk '/MemTotal/ {printf "%d", $2/1024/1024}' /proc/meminfo)
11
+
12
+echo "--- :bar_chart: Telemetry. ${vcpus} vCPUS (${phys_cpus} physical CPUs), ${ram_gb} GB"
13
14
cat "$BUILDKITE_TELEMETRY_PLUGIN_OUTFILE"
15
16
rm -rf -- "$BUILDKITE_TELEMETRY_PLUGIN_TMPDIR"
0 commit comments