We have a sharded, replicated cluster. Mongostat output includes many columns that are useful, but the sort order is only hostname:port.
Since sometimes we change which box is running the primary vs. secondary, we sometimes end up with a jumble of lines orderd (pri, pri, sec, pri, sec, sec), etc.
Ideally, we should be able to order these by user-specified criteria, but if it's easier, I'd like to suggest two additional sort-order options:
- repl, set, hostname, port
- set, repl, hostname, port