src/go/plugin/go.d/modules/mongodb/collect_serverstatus.go
Method Mongo.addOptionalCharts
has 68 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Mongo) addOptionalCharts(s *documentServerStatus) {
m.addOptionalChart(s.OpLatencies,
&chartOperationsRate,
&chartOperationsLatencyTime,
)