Monitor Memory And CPU of a Pod in Rancher
If you have a kubernetes pod being terminated due to OOMKilled (Out of Memory Killed), you can monitor the memory usage of the pod during the action that is using too much memory.
- Workload -> Pods -> Find ther POD to monitor and click the name
- Click Metrics
- Set the range and refresh parameters (5s refresh during active monitoring)
- Run process (trigger it through an API call/Swagger endpoint)
- Monitor memory utilization during the process