Skip to content
Snippets Groups Projects
Unverified Commit 5c33c760 authored by Daniel Nelson's avatar Daniel Nelson
Browse files

Fix procstat initialization

parent bb28fb25
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
})
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment