Processes tab (btop-style): every process with CPU%, memory, cpu time, start, sortable + filter, per-core and memory bars, detail pane with terminate/kill; module removed from the dashboard; sampling only while the tab is open
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
ff922bda74
commit
e4df878ac0
@@ -126,6 +126,7 @@ func New(cfg *config.Config, sessions *auth.Sessions, mgr *term.Manager, col *me
|
||||
m.HandleFunc("GET /api/storage/zfs/snapshots", s.auth(s.zfsSnapshots))
|
||||
m.HandleFunc("POST /api/storage/zfs/scrub/{pool}/{action}", s.auth(s.zfsScrub))
|
||||
m.HandleFunc("POST /api/storage/zfs/snapshot", s.auth(s.zfsSnapshot))
|
||||
m.HandleFunc("GET /api/procs", s.auth(s.procList))
|
||||
m.HandleFunc("POST /api/procs/{pid}/signal", s.auth(s.procSignal))
|
||||
m.HandleFunc("GET /api/prefs/dashboard", s.auth(s.getDashPrefs))
|
||||
m.HandleFunc("PUT /api/prefs/dashboard", s.auth(s.putDashPrefs))
|
||||
@@ -926,6 +927,10 @@ func (s *Server) zfsSnapshot(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// ---- processes ----
|
||||
|
||||
func (s *Server) procList(w http.ResponseWriter, _ *http.Request) {
|
||||
jsonOK(w, 200, s.metrics.Processes())
|
||||
}
|
||||
|
||||
func (s *Server) procSignal(w http.ResponseWriter, r *http.Request) {
|
||||
pid, err := strconv.Atoi(r.PathValue("pid"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user