Open Server health from the connection
- Connect to a MongoDB deployment. In the connection’s menu in the database browser, choose Server health….
- Check the topology label, the member or router that answered, and Last sampled. The panel takes another sample about every five seconds while open. Select Refresh to sample now.
- Read Connections as the number of incoming connections currently open on the responding process. Operations per second uses the difference in server operation counters across two usable samples divided by elapsed seconds.
The operation count includes commands, such as the monitoring reads themselves. The rate describes the responding member or router across its clients, rather than the activity from one KeplerGrid tab.
Compare two readings on a practice server
On a disposable local MongoDB instance, open the panel on a Read only connection that can read server metrics. Wait for two samples from the same member. In a separate authorized mongosh session against that same instance, issue this harmless burst of commands while the panel is open.
for (let i = 0; i < 20; i++) {
db.getSiblingDB("admin").runCommand({ ping: 1 })
}
Select Refresh to get a new sample and compare it with the previous one. The number varies with sampling time and other operations. Leaving another client connected can also affect the connection count.
Read missing metrics in context
- A dash for operations per second can mean the panel still needs two usable samples. The app checks the member, its uptime and the counters before calculating a rate.
- Last available reading labels a sample retained after a refresh problem or disconnect. Check its timestamp before drawing conclusions.
- If MongoDB denies
serverStatus, the panel can still show topology whenhellosucceeds. Ask the administrator about a scoped monitoring permission for the account that needs it.
See who can access a MongoDB collection or use Explain to inspect a particular aggregation.
For data and index sizes in one collection, inspect collection statistics.