From 5d5ecc9a43a00c237eaacf7db62f95e1f521902b Mon Sep 17 00:00:00 2001 From: tico88612 <17496418+tico88612@users.noreply.github.com> Date: Wed, 13 Mar 2024 06:32:26 +0800 Subject: [PATCH] Feat: MongoDB scaler add scheme field description (#1326) Signed-off-by: tico88612 <17496418+tico88612@users.noreply.github.com> --- content/docs/2.14/scalers/mongodb.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/docs/2.14/scalers/mongodb.md b/content/docs/2.14/scalers/mongodb.md index b8d8869a2..d36ff1c31 100644 --- a/content/docs/2.14/scalers/mongodb.md +++ b/content/docs/2.14/scalers/mongodb.md @@ -34,6 +34,8 @@ Alternatively, you can configure connection parameters explicitly instead of pro triggers: - type: mongodb metadata: + # scheme of the MongoDB server. if using MongoDB Altas, you can set it to "mongodb+srv" + scheme: "mongodb" # host name of the MongoDB server. Example of mongodb service: "mongodb-svc..svc.cluster.local" host: mongodb-svc.default.svc.cluster.local # port number of the MongoDB server. @@ -70,6 +72,7 @@ To connect to the MongoDB server, you can provide either: Or provide more detailed connection parameters explicitly (a connection string will be generated for you at runtime): +- `scheme` - The scheme of the MongoDB server, if using MongoDB Atlas, you can set it to `mongodb+srv`. (Default: `mongodb`, Optional) - `host` - The host name of the MongoDB server. - `port` - The port number of the MongoDB server. - `username` - Username to authenticate with to MongoDB database. @@ -78,7 +81,7 @@ Or provide more detailed connection parameters explicitly (a connection string w When configuring with a connection string, you can use this URL format: ``` -mongodb://:@mongodb-svc..svc.cluster.local:27017/ +mongodb[+srv]://:@mongodb-svc..svc.cluster.local:27017/ ``` @@ -92,6 +95,7 @@ As an alternative to environment variables, You can authenticate with the MongoD **Password Authentication:** +- `scheme` - The scheme of the MongoDB server, if using MongoDB Atlas, you can set it to `mongodb+srv`. (Default: `mongodb`, Optional) - `host` - The host name of the MongoDB server. - `port` - The port number of the MongoDB server. - `username` - Username to authenticate with to MongoDB database.