[SERVER-39080] cloud.monitoring.free.tag Created: 18/Jan/19  Updated: 27/Oct/23  Resolved: 08/Feb/19

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: 4.0.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Gustavo Massaneiro Assignee: Mark Benvenuto
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DOCS-12441 --enableFreeMonitoringTag option was ... Closed
Operating System: ALL
Steps To Reproduce:

Set the cloud config on the mongod.conf:

cloud:
   monitoring:
      free:
         state: runtime
         tag: dev

Sprint: Security 2019-02-11
Participants:

 Description   

The option cloud.monitoring.free.tag is not being recognized when starting mongod service:

mongod[18244]: Unrecognized option: cloud.monitoring.free.tag



 Comments   
Comment by Ravind Kumar (Inactive) [ 08/Feb/19 ]

DOCS-12441 is set, and the changes are now live. Thanks for the catch.

Comment by Mark Benvenuto [ 08/Feb/19 ]

I am closing this issue since it is a issue with the documentation. I have filed DOCS-12441 to fix the documentation.

Comment by Mark Benvenuto [ 28/Jan/19 ]

The yaml option is actually called "cloud.monitoring.free.tags" and the command line option is called "freeMonitoringTag". The docs need to be updated.

Here is the code:

  freeMonitoringOptions.addOptionChaining("cloud.monitoring.free.tags",
                                            "freeMonitoringTag",
                                            moe::StringVector,
                                            "Cloud Free Monitoring Tags");

It is tested here: https://github.com/mongodb/mongo/blob/88216373b7f1ba0ee16db972b81010efeee3022a/jstests/free_mon/free_mon_register.js#L17

Comment by Danny Hatcher (Inactive) [ 18/Jan/19 ]

Hello Gustavo,

Thank you for your report. I was able to reproduce this behavior so will forward it along to the appropriate team for the fix.

In addition to the YAML issue, using the documented --enableFreeMonitoringTag also does not work. The code is looking for --freeMonitoringTag instead.

Generated at Thu Feb 08 04:50:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.