Mongodb should output 2 plugins in test mode

closes #336
This commit is contained in:
Cameron Sparr 2015-11-02 17:23:40 -07:00
parent 2b966b40f2
commit 422d240afb
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ changed to just run docker commands in the Makefile. See `make docker-run` and
### Bugfixes
- [#331](https://github.com/influxdb/telegraf/pull/331): Dont overwrite host tag in redis plugin.
- [#336](https://github.com/influxdb/telegraf/pull/336): Mongodb plugin should take 2 measurements.
## v0.2.0 [2015-10-27]

View File

@ -314,7 +314,7 @@ func (a *Agent) Test() error {
// Special instructions for some plugins. cpu, for example, needs to be
// run twice in order to return cpu usage percentages.
switch plugin.name {
case "cpu":
case "cpu", "mongodb":
time.Sleep(500 * time.Millisecond)
fmt.Printf("* Plugin: %s, Collection 2\n", plugin.name)
if err := plugin.plugin.Gather(acc); err != nil {