Getting metrics via metrics-server [kubernetes]
It's not possible via metrics-server, you can only get currrently used resources (see docs).
For actual monitoring check out Prometheus or similar services.
I used kuberenetes client package in python to execute kubectl commands inside a pod and using ‘threding’, collected maximum of metrics within a period.