Is it possible to get the number of hits on single collection as well as bandwith usage in mongodb ?
-
Interesting question (+1). The NoSQL bandwagon is truly grinding to a shuddering halt under the weight of questions like this - these systems are great for astronaut programmers who work for large web-based companies and don't have to or want to think about instrumentation. The reality is that without instrumentation, databases are little better than bitbuckets.– VéraceCommented Nov 5, 2019 at 12:52
-
contd... You might want to try PostgreSQL's JSONB functionality in conjunction with the stats available. Not sure how it works with JSON tables - AFAIK, JSONB collections are pretty much like normal tables. If you decide to try this route, you may want to check beforehand - I wouldn't want to give you a bum steer! p.s. welcome to the forum! :-)– VéraceCommented Nov 5, 2019 at 12:52
-
There are a number of collection-level metrics and index usage stats available in MongoDB, but hits and bandwidth sound like metrics more applicable to a web UI/API. Do these links cover the sort of metrics you are after? If not, please edit your question to include more specific examples.– StennieCommented Nov 11, 2019 at 6:24
Add a comment
|
1 Answer
There is a documentation section for Analyzing Performance, another for Monitoring, and one specifically for free monitoring.
You can also run the command db.serverStatus()
to retrieve server statistics.