procstat: Add user, pidfile, pattern & exe tags

closes #1035
This commit is contained in:
Cameron Sparr
2016-04-20 13:18:07 -06:00
parent 4bcf157d88
commit f1b7ecb2a2
4 changed files with 40 additions and 18 deletions

View File

@@ -25,6 +25,7 @@ func TestGather(t *testing.T) {
PidFile: file.Name(),
Prefix: "foo",
pidmap: make(map[int32]*process.Process),
tagmap: make(map[int32]map[string]string),
}
p.Gather(&acc)
assert.True(t, acc.HasFloatField("procstat", "foo_cpu_time_user"))