5

Is there a MongoDB server performance monitoring tool which I can run on a local host or a local machine? I am concerned about privacy issues while using third-party hosting tools like MongoDB Monitoring Service.

Gianfranco P.
  • 10,049
  • 6
  • 51
  • 68
Amit S
  • 51
  • 1
  • 2
  • 2
    I hear your privacy concerns. Mostly, 10gen offers the MMS as a way to get your contact information so that they can sell you a support contract. – Gates VP Aug 02 '12 at 16:15

3 Answers3

4

The MongoDB documentation has information on Monitoring MongoDB including monitoring strategies, relevant database commands, and some self-hosted monitoring options.

If you are concerned about the information collected by MongoDB Cloud Manager (née MMS) or would like to collect this information yourself, you can see a list of database commands used by the monitoring agent.

Stennie
  • 63,885
  • 14
  • 149
  • 175
  • It seems that MongoDB Cloud Manager has superseded MMS. The list of commands use by that can be found at https://docs.cloudmanager.mongodb.com/reference/monitoring/ Your link is orphaned. If someone were interested in crafting their own monitoring, that list would be a good place to start. – Bruno Bronosky Oct 13 '16 at 18:09
  • @BrunoBronosky The original answer was from 2012 so there have been a few changes since then :). I've updated to reflect current links. – Stennie Oct 14 '16 at 03:10
  • Thank you for updating this. Good answers are eternal! http://stackoverflow.com/a/14203146/117471 – Bruno Bronosky Oct 14 '16 at 03:47
2

MongoBird is best monitoring tool for MongoDB. It can be installed on all platforms. because it is developed in Java. So, you can install mongobird on the local host.

Mike Beeler
  • 4,081
  • 2
  • 29
  • 44
mobilocus
  • 21
  • 1
0

MongoDB has created a free monitoring tool in version 4.0 which works on localhost. To use it just connect to the database and run db.enableFreeMonitoring()

For Example:

mongo test
MongoDB shell version v4.0.4
connecting to: mongodb://127.0.0.1:27017/test

Once you've connected you can enable monitoring like so:

test> db.enableFreeMonitoring()
{
 "state": "enabled",
 "message": "To see your monitoring data, navigate to the unique URL below. Anyone you share the URL with will also be able to view this page. You can disable monitoring at any time by running db.disableFreeMonitoring().",
 "url": "https://cloud.mongodb.com/freemonitoring/cluster/HZL3ISL73QLWSNEAYMER2FGR3BINAEGJ",
 "userReminder": "",
 "ok": 1
}

Then go to the url provided (https://cloud.mongodb.com/freemonitoring/...).

Finally, to disable monitoring:

test> db.disableFreeMonitoring()
jwerre
  • 9,179
  • 9
  • 60
  • 69