diff --git a/agent/utils/mongo_fix/mongo_fix.go b/agent/utils/mongo_fix/mongo_fix.go
index <HASH>..<HASH> 100644
--- a/agent/utils/mongo_fix/mongo_fix.go
+++ b/agent/utils/mongo_fix/mongo_fix.go
@@ -18,7 +18,6 @@ package mongo_fix
 import (
 	"net/url"
 
-	"github.com/pkg/errors"
 	"go.mongodb.org/mongo-driver/mongo/options"
 )
 
@@ -30,7 +29,8 @@ func ClientOptionsForDSN(dsn string) (*options.ClientOptions, error) {
 	// if username or password is set, need to replace it with correctly parsed credentials.
 	parsedDsn, err := url.Parse(dsn)
 	if err != nil {
-		return nil, errors.Wrap(err, "cannot parse DSN")
+		// for non-URI, do nothing (PMM-10265)
+		return clientOptions, nil
 	}
 	username := parsedDsn.User.Username()
 	password, _ := parsedDsn.User.Password()
fallback to original DSN if it is non-URI (#<I>)