[SERVER-34230] Implement setFreeMonitoring command and actionTypes Created: 30/Mar/18  Updated: 29/Oct/23  Resolved: 18/Apr/18

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

Type: Task Priority: Major - P3
Reporter: Gregory McKeon (Inactive) Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-04-23
Participants:

 Description   
{setFreeMonitoring : 1, action: (enable | disable) }

Parameters:
action: enable|disable - see description before
Returns:
ok: bool - true if the command was successful, false otherwise
This command can only be run on primaries.
It requires the user to have action setFreeMonitoring to run. This action is part of the clusterManager role.
If the state changes from disabled to enabled, or from enabled to enabled the server will register itself with Cloud. A registration call will occur regardless of whether the server already attempted registration or was previously registered.
Only one setFreeMonitoring can proceed at a time. The command behaves as if there is a global lock coordinate all callers of the command.
If the state changes from enabled to disabled, the server will stop uploading metrics.
If the state changes from disabled to disabled, the server will do nothing
If registration succeeds, it returns

{ ok: 1 }

.
If registration fails, it returns

{ ok: 0, errmsg ... }

If registration times out, it returns

{ ok: 0, errmsg : timeout }

 Comments   
Comment by Githook User [ 18/Apr/18 ]

Author:

{'name': 'Sara Golemon', 'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com'}

Message: SERVER-34230 Add ActionType and Commands for Free Monitoring
Branch: master
https://github.com/mongodb/mongo/commit/14d03a79f55d69ccdd27bb4a08906a4be5eb4a8e

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