From fa0bd442e8accccf2c2267e17b36a6d09b620123 Mon Sep 17 00:00:00 2001 From: "Harper, Jason M" Date: Tue, 13 Jan 2026 15:00:27 -0800 Subject: [PATCH 1/2] update Superuser requirement to false for telemetry scripts Signed-off-by: Harper, Jason M --- internal/script/scripts.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/script/scripts.go b/internal/script/scripts.go index ab42faa9..097fef52 100644 --- a/internal/script/scripts.go +++ b/internal/script/scripts.go @@ -1275,7 +1275,7 @@ if [ $duration -ne 0 ] && [ $interval -ne 0 ]; then fi LC_TIME=C mpstat -u -T -I SCPU -P ALL $interval $count `, - Superuser: true, + Superuser: false, Lkms: []string{}, Depends: []string{"mpstat"}, }, @@ -1288,7 +1288,7 @@ if [ $duration -ne 0 ] && [ $interval -ne 0 ]; then fi S_TIME_FORMAT=ISO iostat -d -t $interval $count | sed '/^loop/d' `, - Superuser: true, + Superuser: false, Lkms: []string{}, Depends: []string{"iostat"}, }, @@ -1301,7 +1301,7 @@ if [ $duration -ne 0 ] && [ $interval -ne 0 ]; then fi LC_TIME=C sar -r $interval $count `, - Superuser: true, + Superuser: false, Lkms: []string{}, Depends: []string{"sar", "sadc"}, }, @@ -1314,7 +1314,7 @@ if [ $duration -ne 0 ] && [ $interval -ne 0 ]; then fi LC_TIME=C sar -n DEV $interval $count `, - Superuser: true, + Superuser: false, Lkms: []string{}, Depends: []string{"sar", "sadc"}, }, @@ -1333,7 +1333,7 @@ echo TIME: $(date +"%H:%M:%S") echo INTERVAL: $interval turbostat -i $interval $count `, - Superuser: true, + Superuser: false, Lkms: []string{"msr"}, Depends: []string{"turbostat"}, }, @@ -1394,7 +1394,7 @@ pw_pid=$! wait $pw_pid 2>/dev/null || true finalize `, - Superuser: true, + Superuser: false, Lkms: []string{"msr"}, Depends: []string{"processwatch"}, }, From 4426daaef0423060eb73d7105244e3c2ccf3a964 Mon Sep 17 00:00:00 2001 From: "Harper, Jason M" Date: Wed, 14 Jan 2026 12:44:06 -0800 Subject: [PATCH 2/2] turbostat and processwatch require sudo Signed-off-by: Harper, Jason M --- internal/script/scripts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/script/scripts.go b/internal/script/scripts.go index 097fef52..a53737e4 100644 --- a/internal/script/scripts.go +++ b/internal/script/scripts.go @@ -1333,7 +1333,7 @@ echo TIME: $(date +"%H:%M:%S") echo INTERVAL: $interval turbostat -i $interval $count `, - Superuser: false, + Superuser: true, Lkms: []string{"msr"}, Depends: []string{"turbostat"}, }, @@ -1394,7 +1394,7 @@ pw_pid=$! wait $pw_pid 2>/dev/null || true finalize `, - Superuser: false, + Superuser: true, Lkms: []string{"msr"}, Depends: []string{"processwatch"}, },