@@ -11,9 +11,10 @@ Synopsis
11
11
12
12
The :program:`mongostat` utility provides a quick overview of the
13
13
status of a currently running :program:`mongod`
14
+ or :program:`mongos`
14
15
instance. :program:`mongostat` is functionally similar to the
15
16
UNIX/Linux file system utility ``vmstat``, but provides data regarding
16
- :program:`mongod` instances.
17
+ :program:`mongod` and :program:`mongos` instances.
17
18
18
19
.. seealso::
19
20
@@ -30,10 +31,11 @@ UNIX/Linux file system utility ``vmstat``, but provides data regarding
30
31
For an additional utility that provides MongoDB metrics see
31
32
":doc:`mongotop </reference/mongotop>`."
32
33
33
- :program:`mongostat` connects to the :program:`mongod` process running
34
+ :program:`mongostat` connects to the :program:`mongod` instance running
34
35
on the local host interface on TCP port ``27017``; however,
35
- :program:`mongostat` can connect to any accessible remote MongoDB
36
- process.
36
+ :program:`mongostat` can connect to any accessible remote :program:`mongod`
37
+ instance.
38
+
37
39
38
40
Options
39
41
-------
@@ -60,7 +62,7 @@ Options
60
62
61
63
Specifies a resolvable hostname for the :program:`mongod` from which you
62
64
want to export data. By default :program:`mongostat` attempts to connect
63
- to a MongoDB process running on the localhost port number ``27017``.
65
+ to a MongoDB instance running on the localhost port number ``27017``.
64
66
65
67
Optionally, specify a port number to connect a MongoDB instance
66
68
running on a port other than ``27017``.
@@ -101,15 +103,16 @@ Options
101
103
.. option:: --rowcount <number>, -n <number>
102
104
103
105
Controls the number of rows to output. Use in conjunction with
104
- ":command :`mongostat <sleeptime>`" to control the duration of a
106
+ :program :`mongostat <sleeptime>` to control the duration of a
105
107
:program:`mongostat` operation.
106
108
107
- Unless specification, :program:`mongostat` will return an infinite number
109
+ Unless :option:`--rowcount` is specified, :program:`mongostat`
110
+ will return an infinite number
108
111
of rows (e.g. value of ``0``.)
109
112
110
113
.. option:: --http
111
114
112
- Configures :program:`mongostat` to collect data using HTTP interface
115
+ Configures :program:`mongostat` to collect data using the HTTP interface
113
116
rather than a raw database connection.
114
117
115
118
.. option:: --discover
@@ -134,7 +137,7 @@ Options
134
137
135
138
.. option:: <sleeptime>
136
139
137
- The final argument the length of time, in seconds, that
140
+ The final argument is the length of time, in seconds, that
138
141
:program:`mongostat` waits in between calls. By default :program:`mongostat`
139
142
returns one call every second.
140
143
@@ -260,13 +263,13 @@ average operations per second.
260
263
261
264
.. describe:: netIn
262
265
263
- The amount of network traffic, in *bits *, received by the MongoDB.
266
+ The amount of network traffic, in *bytes *, received by the MongoDB instance .
264
267
265
268
This includes traffic from :program:`mongostat` itself.
266
269
267
270
.. describe:: netOut
268
271
269
- The amount of network traffic, in *bits *, sent by the MongoDB.
272
+ The amount of network traffic, in *bytes *, sent by the MongoDB instance .
270
273
271
274
This includes traffic from :program:`mongostat` itself.
272
275
0 commit comments