[DOCS-8238] mongostat configurability Created: 08/Jul/16  Updated: 17/Nov/16  Resolved: 17/Nov/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.4.0

Type: Task Priority: Major - P3
Reporter: Lucas Morales Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File mongostat.png    
Issue Links:
Documented
documents TOOLS-42 Make mongostat configurable Closed
documents TOOLS-1005 mongostat command line flag: don't ma... Closed
Participants:
Days since reply: 7 years, 12 weeks, 6 days ago
Epic Link: 3.4 Tools Related Updates
Story Points: 2

 Description   

The help message has been updated for the recent changes, but there should also be changes to the docs.

New features:

  • Add a toggle for making certain fields human-readable
  • Allow field customizability, like ps’s -o and -O options for which a user-specified particular arrangement and presentation of fields is used. This allows for custom ordering and limited/extended output.
  • Allow custom naming of fields in those options. e.g. host=H,time=T.
  • Implement arbitrary serverStatus fields. This allows users to use fields that may not already be explicitly added.
  • Implement methods on serverStatus fields. (e.g. dur.commits.diff(), extra_info.page_faults.rate()). For now, diff() and rate() are the only methods we support.

Major new behaviors (see screenshot below); commands as follows:

  1. The default view.
  2. With --humanReadable=false specified, sizes are in precise amounts and times are less readable but easier to parse.
  3. With -O host, the host field is appended to default output.
  4. Use -o <FIELDS> to limit output only to given fields. Access specific serverStatus fields literally, and (optionally) rename for output. (metrics.document.inserted=inserted)
  5. See the stat output change after and during many insert operations.
  6. Use the rate method to see how quickly, per second, a field is changing. (metrics.document.inserted.rate()=insert_rate)


 Comments   
Comment by Allison Reinheimer Moore [ 17/Nov/16 ]

Commit, since I had a typo in the commit string. https://github.com/mongodb/docs/commit/c258308bbc1dc41f886f501d9a3759505d4b274e

Comment by Allison Reinheimer Moore [ 06/Oct/16 ]

Blocked on having the ability to build the branch (DOCS-9100)

Generated at Thu Feb 08 07:55:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.