[SERVER-5576] Add an "interval" argument to mongostat Created: 11/Apr/12  Updated: 12/Apr/12  Resolved: 12/Apr/12

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

Type: New Feature Priority: Minor - P4
Reporter: Mike Titus Assignee: Unassigned
Resolution: Done Votes: 0
Labels: mongostat
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

It would be nice to have an optional "interval" command line argument to mongostat to control how often mongostat displays a new line of stats. Current update interval appears to be hardcoded for 1 second. It would be helpful to view 30 or 60 seconds of stats in low-load environments, where second-to-second stats can often show 0 queries.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 12/Apr/12 ]

from --help

usage: /opt/mongo/64/2.0.4/mongostat [options] [sleep time]

you want sleeptime

so mongostat 60

Generated at Thu Feb 08 03:09:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.