Skip mongodb collection on error

This commit is contained in:
Daniel Nelson 2019-08-08 10:43:51 -07:00
parent f88004c62b
commit 17465b0aaf
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ func (s *Server) gatherData(acc telegraf.Accumulator, gatherDbStats bool, gather
}, col_stat_line) }, col_stat_line)
if err != nil { if err != nil {
log.Println("E! Error getting col stats from " + col_name + "(" + err.Error() + ")") log.Println("E! Error getting col stats from " + col_name + "(" + err.Error() + ")")
continue
} }
collection := &Collection{ collection := &Collection{
Name: col_name, Name: col_name,