Fix procstat initialization

This commit is contained in:
Daniel Nelson 2017-03-21 10:59:41 -07:00
parent a7e8bc1c02
commit 6d0fbe9cf3
1 changed files with 4 additions and 1 deletions

View File

@ -235,6 +235,9 @@ func (p *Procstat) findPids() ([]PID, map[string]string, error) {
func init() {
inputs.Add("procstat", func() telegraf.Input {
return &Procstat{}
return &Procstat{
createPIDFinder: defaultPIDFinder,
createProcess: defaultProcess,
}
})
}