Interview Prep/Linux/Performance & the USE Method

What is sar and why install sysstat on every server?

BeginnerProductionPerformance & the USE Method
Answer

sysstat collects system metrics every 10 minutes (configurable) into /var/log/sysstat/ or /var/log/sa/, so you can look at history: what CPU, memory, disk and network looked like at 03:14 last night when the alert fired, even without a monitoring stack.

sudo systemctl enable --now sysstat
sar -u -f /var/log/sa/sa15 -s 03:00:00 -e 03:30:00
sar -r       # memory
sar -d -p    # disks
sar -n DEV   # network
All Linux questions Roadmap: Linux

More on Performance & the USE Method