Fix procstat initialization
This commit is contained in:
parent
bb28fb256b
commit
5c33c760c7
|
@ -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,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue