Bash script which tracks OS performance parameters

I’m completely new to Linux. I have a fresh Ubuntu and I need to write a script which tracks the performance of the OS (CPU, RAM load, etc) every second in format which looks like this: yymmdd [var]. Could anyone help me out with this?