jupyter-resource-usage
jupyter-resource-usage copied to clipboard
determine if nbresuse is running in docker or pod
Returns the correct memory & cpu values when nbresuse running in a docker or pod environment
forgot import os module
Thanks @xianglei. It's true the limits are for now not accurate when running in a container (not taking the cgroups limits into account).