Access cpu mem disk for file


#1

is there a way to pull the CPU mem disk from the console into my project for stats. These: Capture
I want to be able to access it as a javascript variable and in my HTML file. thanks.
edit: fixed mistakes


#2

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


#3

I will have to try this later. Thanks


#4

how do i imput this into my HTML/JS code


#5

You need to create end-points in your server-side code that you call using Ajax from your front-end JS code.