title: MongoDB: How to measure latency or other parameters of DB
body: <p><strong>Situation:</strong> App has an API part and one of the API calls returns status of MongoDB. Right now it returns only &quot;OK&quot; or &quot;DOWN&quot;.</p>
  <pre><code>final DB defaultDb = dbFactory.getDb(dbName);
  </code></pre>
  <p>Getting general status of DB from DB object is not a problem. But how I can get some more information? Like latency or other DB parameters? And is it possible to get more?</p>