[MXS-4648] MongoDB monitoring promoted when connecting to NoSQL service Created: 2022-11-08  Updated: 2023-07-01  Resolved: 2023-06-30

Status: Closed
Project: MariaDB MaxScale
Component/s: nosqlprotocol
Affects Version/s: 6.4, 22.08, 23.08
Fix Version/s: 6.4.8, 22.08.7, 23.02.3

Type: Bug Priority: Major
Reporter: Jacob Moorman (Inactive) Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: Sky2-UAT

Sprint: MXS-SPRINT-186

 Description   

When connecting to our NoSQL service, Mongosh promotes MongoDB's free cloud-based monitoring service.

z7m@z7m:~/docs-content/DOCS-3106$ mongosh --host dbswf05397994.syss0001.stage1.skysql.net --port 27017 --tls --tlsCAFile ~/Downloads/stage_chain_2022.pem 
Current Mongosh Log ID:	636a7f18431f4e5dede8075f
Connecting to:		mongodb://dbswf05397994.syss0001.stage1.skysql.net:27017/?directConnection=true&tls=true&tlsCAFile=%2Fhome%2Fz7m%2FDownloads%2Fstage_chain_2022.pem&appName=mongosh+1.6.0
Using MongoDB:		4.4.1
Using Mongosh:		1.6.0
 
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
 
------
   The server generated these startup warnings when booting
   Unexpected log line format: No news is good news.
------
 
------
   Enable MongoDB's free cloud-based monitoring service, which will then receive and display
   metrics about your deployment (disk utilization, CPU, operation statistics, etc).
   
   The monitoring data will be available on a MongoDB website with a unique URL accessible to you
   and anyone you share the URL with. MongoDB may use this information to make product
   improvements and to suggest MongoDB products and deployment options to you.
   
   To enable free monitoring, run the following command: db.enableFreeMonitoring()
   To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
------

Executing db.disableFreeMonitoring() does not suppress this notice. Logging this ticket, which may need to be reviewed by the MXS team, because I believe it is not desirable that we have a competitive promotion when connecting to our service.



 Comments   
Comment by Naman Shah (Inactive) [ 2022-11-17 ]

toddstoffel - Is there a configuration workaround for this?

Comment by Naman Shah (Inactive) [ 2022-11-18 ]

jacob.moorman - this is coming from Mongo shell. We can't control their product.

Comment by Jacob Moorman (Inactive) [ 2022-11-18 ]

This is likely something that should be evaluated by the MXS team. Shell
probably makes a call we do not currently support, and suppresses the
message based on that call.
https://www.mongodb.com/docs/manual/reference/method/db.disableFreeMonitoring/#mongodb-method-db.disableFreeMonitoring


Jacob Moorman
Sr. Director of Documentation, MariaDB

Comment by Elena Kotsinova (Inactive) [ 2023-06-19 ]

markus makela Could you please evaluate this proposal and let me know if there is something MaxScale team can do in direction to suppress advertising messages in from Mongosh

Comment by markus makela [ 2023-06-19 ]

johan.wikman can you reproduce this?

Comment by Johan Wikman [ 2023-06-30 ]

That particular marketing blurb seems to be a feature of just some versions of mongosh 1.6.0. Version 1.6.0 shows it, but e.g. 1.10.0 does not.

Generated at Thu Feb 08 04:30:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.