Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client/API/docker_wrapper: get CPU and mem usage of Docker apps #5870

Merged
merged 5 commits into from
Oct 30, 2024

Commits on Oct 29, 2024

  1. client/API/docker_wrapper: get CPU and mem usage of Docker apps

    Mem usage (WSS):
    The easiest way to get the WSS of a Docker contaier is to ask Docker
    using the "docker stats" command.
    So I have docker_wrapper do this periodically (10 sec... it's a bit slow).
    
    But how to get this back to the client?
    Currently there's no provision for an app to reports its own WSS.
    So I added one, by adding an optional field to the app status messages
    sent from app to client in shared mem.
    If this is present, the client uses it instead of procinfo.
    
    CPU time: "docker stats" reports CPU fraction
    (averaged over what period?)
    We multiply that by the stats poll.
    Not exactly the same as CPU time, but close enough.
    davidpanderson committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    8020fde View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Configuration menu
    Copy the full SHA
    086d52c View commit details
    Browse the repository at this point in the history
  2. tweak

    davidpanderson committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    445ef91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e63c1d6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    984d0ab View commit details
    Browse the repository at this point in the history