Versions in this module Expand all Collapse all v0 v0.5.0 Mar 17, 2017 v0.4.0 Jan 9, 2017 Changes in this version + func NewMongoDB(conf plugin.InitConfig) plugin.Plugin + type DataLayer interface + Run func(cmd interface{}, result interface{}) error + type MongoDB struct + AdditionalMetrics []string + Server string + Tags []string + Timeout int64 + func (m *MongoDB) Check(agg metric.Aggregator) error + type MongoSession struct + func (s MongoSession) DB(name string) DataLayer + type ReplSetMember struct + Health int64 + Name string + OptimeDate time.Time + Self bool + State int64 + StateStr string + type ReplSetStatus struct + Members []ReplSetMember + MyState int64 + type Session interface + Close func() + DB func(name string) DataLayer + DatabaseNames func() (names []string, err error) + Run func(cmd interface{}, result interface{}) error + type Top struct + Totals map[string]bson.M