Fix procstat initialization
This commit is contained in:
parent
a7e8bc1c02
commit
6d0fbe9cf3
|
@ -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