Fix procstat initialization

This commit is contained in:
Daniel Nelson 2017-03-21 10:59:41 -07:00
parent bb28fb256b
commit 5c33c760c7
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
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,
}
})
}