Having access to historical performance counters will be useful when we encounter performance issues. This PR creates a program to install sysstat on VmHosts to enable that. After this, sysstat will collect a performance counter samples every minute, which can be analyzed using the sar command: ``` $ sar -f /var/log/sysstat/sa[date] [options] ```
11 lines
195 B
Ruby
11 lines
195 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Prog::SetupSysstat < Prog::Base
|
|
subject_is :sshable
|
|
|
|
label def start
|
|
sshable.cmd("sudo host/bin/setup-sysstat")
|
|
pop "Sysstat was setup"
|
|
end
|
|
end
|