[SERVER-65271] serverStatus should allow fine-grained metrics exclusion Created: 05/Apr/22  Updated: 29/Oct/23  Resolved: 07/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, 5.0.9, 4.4.15

Type: Task Priority: Minor - P4
Reporter: Jess Balint Assignee: Jess Balint
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-63642 Add serverStatus metrics to measure m... Closed
Documented
is documented by DOCS-15218 Investigate changes in SERVER-65271: ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.3, v5.0, v4.4
Sprint: QO 2022-04-18
Participants:

 Description   

Motivated by work on SERVER-63642, we would like to exclude some serverStatus metrics from FTDC collection. This is not possible with the current serverStatus command which only allows excluding top-level sections/keys from the output. The result of implementing this task is that we would be able to exclude arbitrarily nested elements from the metrics output.

Before this change, serverStatus() accepts an argument which excludes top-level sections, eg

{replication: false}
 

. this change allows detailed exclusion of metrics, eg

{metrics: {query: {multiPlanner: {histograms: false}}}}

. both individual fields/metrics and objects/branches can be excluded



 Comments   
Comment by Githook User [ 21/Apr/22 ]

Author:

{'name': 'Jess Balint', 'email': 'jbalint@gmail.com', 'username': 'jbalint'}

Message: SERVER-65271 serverStatus should allow fine-grained metrics exclusion

(cherry picked from commit d964e2b912e26a96ee61cf4272102c8b4415fd2e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a253db72b08fd159332ad121e644fcea651d10db

Comment by Githook User [ 21/Apr/22 ]

Author:

{'name': 'Jess Balint', 'email': 'jbalint@gmail.com', 'username': 'jbalint'}

Message: SERVER-65271 serverStatus should allow fine-grained metrics exclusion

(cherry picked from commit d964e2b912e26a96ee61cf4272102c8b4415fd2e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/08bcb09f03328105f0e21327f1f758bec3123450

Comment by Githook User [ 07/Apr/22 ]

Author:

{'name': 'Jess Balint', 'email': 'jbalint@gmail.com', 'username': 'jbalint'}

Message: SERVER-65271 serverStatus should allow fine-grained metrics exclusion
Branch: master
https://github.com/mongodb/mongo/commit/d964e2b912e26a96ee61cf4272102c8b4415fd2e

Generated at Thu Feb 08 06:02:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.