diff --git a/probe/probe_mongodb.go b/probe/probe_mongodb.go index 54933ce..f8087e3 100644 --- a/probe/probe_mongodb.go +++ b/probe/probe_mongodb.go @@ -50,6 +50,7 @@ func (m *mongoDBProbe) Exec() error { defer cancel() err = client.Connect(ctx) + defer client.Disconnect(ctx) if err != nil { return err }