Add user tag to procstat input (#4386)

This commit is contained in:
Greg
2018-07-05 14:56:41 -06:00
committed by Daniel Nelson
parent bf076dab73
commit b5cdeeb300
3 changed files with 17 additions and 0 deletions

View File

@@ -104,6 +104,10 @@ func (p *testProc) PID() PID {
return p.pid
}
func (p *testProc) Username() (string, error) {
return "testuser", nil
}
func (p *testProc) Tags() map[string]string {
return p.tags
}