From ff9369f1a1cb69fa44fdd8e664ffffddc7949a13 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Mon, 13 Feb 2017 10:33:51 +0000 Subject: [PATCH] prepend 'inputs.' to --test output check --- agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index 192e8c112..11f343632 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -209,7 +209,7 @@ func (a *Agent) Test() error { // Special instructions for some inputs. cpu, for example, needs to be // run twice in order to return cpu usage percentages. switch input.Name() { - case "cpu", "mongodb", "procstat": + case "inputs.cpu", "inputs.mongodb", "inputs.procstat": time.Sleep(500 * time.Millisecond) fmt.Printf("* Plugin: %s, Collection 2\n", input.Name()) if err := input.Input.Gather(acc); err != nil {