Skip mongodb collection on error
This commit is contained in:
parent
f88004c62b
commit
17465b0aaf
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue