From 5c33c760c7acd2bae24894250606a87fc78c8425 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 21 Mar 2017 10:59:41 -0700 Subject: [PATCH] Fix procstat initialization --- plugins/inputs/procstat/procstat.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/procstat/procstat.go b/plugins/inputs/procstat/procstat.go index 46b88fbcf..20c5af9d2 100644 --- a/plugins/inputs/procstat/procstat.go +++ b/plugins/inputs/procstat/procstat.go @@ -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, + } }) }