Add per-host shard metrics in mongodb input (#3819)

This commit is contained in:
Jake Champlin
2018-04-10 20:10:29 -04:00
committed by Daniel Nelson
parent d44b3f6839
commit 0fc8724f88
5 changed files with 121 additions and 4 deletions

View File

@@ -156,6 +156,7 @@ func (s *Server) gatherData(acc telegraf.Accumulator, gatherDbStats bool) error
)
data.AddDefaultStats()
data.AddDbStats()
data.AddShardHostStats()
data.flush(acc)
}
return nil