JeromeJ
Apify & Crawlee2y ago
7 replies
Jerome

Monitoring CPU and memory usage in actors

Hi, I'm develping an actor in rust and I'm trying to access resources utilisation (CPU and memory). I've seen that Crawlee uses
os.cpus()
from node, but I'm looking for a rust equivalent.
I can make it work locally by mounting the docker socket on the container (
docker run -v /var/run/docker.sock:/var/run/docker.sock <image_tag>
), but it does not work on the Apify platform.
Are there any resources/pointers I could check on how Apify runs an actor's container? And how I could read these resources utilisation?
Any help would be appreciated.
Was this page helpful?