is there a way to pull the CPU mem disk from the console into my project for stats. These:
I want to be able to access it as a javascript variable and in my HTML file. thanks.
edit: fixed mistakes
1 Like
You can read the contents of these files:
/sys/fs/cgroup/memory/memory.limit_in_bytes
/sys/fs/cgroup/memory/memory.usage_in_bytes
/sys/fs/cgroup/cpu/cpu.cfs_quota_us
/sys/fs/cgroup/cpu/cpu.cfs_period_us
2 Likes
I will have to try this later. Thanks
how do i imput this into my HTML/JS code
You need to create end-points in your server-side code that you call using Ajax from your front-end JS code.
1 Like