mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 11:55:42 +03:00
Implemented stats for raw_exec
This commit is contained in:
@@ -32,5 +32,9 @@ func (e *UniversalExecutor) configureIsolation() error {
|
||||
}
|
||||
|
||||
func (e *UniversalExecutor) Stats() (*cstructs.TaskResourceUsage, error) {
|
||||
return nil, nil
|
||||
return e.resourceUsagePids()
|
||||
}
|
||||
|
||||
func (e *UniversalExecutor) getAllPids() ([]int, error) {
|
||||
return e.scanPids()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user