Skip to content

Commit

Permalink
Skip mongodb collection on error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Aug 8, 2019
1 parent f88004c commit 17465b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/mongodb/mongodb_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (s *Server) gatherData(acc telegraf.Accumulator, gatherDbStats bool, gather
}, col_stat_line)
if err != nil {
log.Println("E! Error getting col stats from " + col_name + "(" + err.Error() + ")")
continue
}
collection := &Collection{
Name: col_name,
Expand Down

0 comments on commit 17465b0

Please sign in to comment.