Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Initial prototype of resources command #137

Merged
merged 6 commits into from
Oct 18, 2020
Merged

Initial prototype of resources command #137

merged 6 commits into from
Oct 18, 2020

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Oct 17, 2020

$ coder resources top --verbose
Chris Decelles    (chris@coder.com)    [cpu: alloc=5.0vCPU, util=0.0]    [mem: alloc=5.0GB, util=0.0]
    cjd-dev    [cpu: alloc=4.0vCPU, util=0.0]    [mem: alloc=4.0GB, util=0.0]    [org: Coder]
    cjd-sts    [cpu: alloc=1.0vCPU, util=0.0]    [mem: alloc=1.0GB, util=0.0]    [org: Coder]

Kyle Carberry    (kyle@coder.com)    [cpu: alloc=4.0vCPU, util=0.0]    [mem: alloc=8.0GB, util=0.2]
    dev    [cpu: alloc=4.0vCPU, util=0.0]    [mem: alloc=8.0GB, util=0.2]    [org: Coder]
$ coder resources top --group org --verbose
User Testing    (6 members)    [cpu: alloc=8.0vCPU, util=0.0]    [mem: alloc=14.0GB, util=0.0]
    chainman     [cpu: alloc=4.0vCPU, util=0.0]    [mem: alloc=8.0GB, util=0.0]    [user: grey@coder.com]
    jekyll       [cpu: alloc=2.0vCPU, util=0.0]    [mem: alloc=4.0GB, util=0.0]    [user: dale@dalemarkowitz.com]
    dale-blog    [cpu: alloc=2.0vCPU, util=0.0]    [mem: alloc=2.0GB, util=0.0]    [user: will@coder.com]

...

TODO:

  • make the output more legible
    - [ ] utilization units Removing this for now out of UX concerns
  • aggregation, grouping flags
  • sorting flags

@cmoog cmoog marked this pull request as ready for review October 17, 2020 04:17
@cmoog cmoog force-pushed the resource-manager branch 6 times, most recently from 902d17f to d75e755 Compare October 17, 2020 06:38
@cmoog cmoog merged commit e5d55d0 into master Oct 18, 2020
@cmoog cmoog deleted the resource-manager branch October 18, 2020 21:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant