prepend 'inputs.' to --test output check
This commit is contained in:
parent
21cf79163c
commit
ff9369f1a1
|
@ -209,7 +209,7 @@ func (a *Agent) Test() error {
|
||||||
// Special instructions for some inputs. cpu, for example, needs to be
|
// Special instructions for some inputs. cpu, for example, needs to be
|
||||||
// run twice in order to return cpu usage percentages.
|
// run twice in order to return cpu usage percentages.
|
||||||
switch input.Name() {
|
switch input.Name() {
|
||||||
case "cpu", "mongodb", "procstat":
|
case "inputs.cpu", "inputs.mongodb", "inputs.procstat":
|
||||||
time.Sleep(500 * time.Millisecond)
|
time.Sleep(500 * time.Millisecond)
|
||||||
fmt.Printf("* Plugin: %s, Collection 2\n", input.Name())
|
fmt.Printf("* Plugin: %s, Collection 2\n", input.Name())
|
||||||
if err := input.Input.Gather(acc); err != nil {
|
if err := input.Input.Gather(acc); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue