Files
ubicloud/prog/setup_sysstat.rb
Hadi Moshayedi 22cf0a075e Install Sysstat.
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]
```
2023-11-10 12:54:43 -08:00

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