From 17465b0aaf2489eac8ec1a5a9b72ed32f7d2ebf1 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 8 Aug 2019 10:43:51 -0700 Subject: [PATCH] Skip mongodb collection on error --- plugins/inputs/mongodb/mongodb_server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/inputs/mongodb/mongodb_server.go b/plugins/inputs/mongodb/mongodb_server.go index 5adc58d04..45d39d6ae 100644 --- a/plugins/inputs/mongodb/mongodb_server.go +++ b/plugins/inputs/mongodb/mongodb_server.go @@ -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,