Monitoring Ubuntu Server with nodejs/mongodb

There are two Ubuntu VPS Server-a with installed NodeJS and MongoDB (on different servers). Want to implement their monitoring in real-time. I want to collect statistics on cpu, memory usage, average request processing time, the statistics for MongoDB, etc., and also with his custom statistics (e.g. number of errors), and to show the customer these charts:

Before anything similar did not do, and would like You to know what tools is best to do and preferably with detailed instructions on setting up.

The main task is the monitoring of statistics on the client.
October 3rd 19 at 02:27
4 answers
October 3rd 19 at 02:29
Any suitable monitoring system.
For MongoDB there is an example on them off the site for Munin. Write the plugin to fit your needs, writing plugins is very simple.
For Node
October 3rd 19 at 02:31
The server as wrote above, through munin graphs it is convenient to draw. Each node.js the app is handy to monitor this thing Errors can be collected for example this bugsnag.comthey have module for node.js
October 3rd 19 at 02:33
I would like to use a single tool to monitor all required components. About Munin write that is a good thing, until the number of servers is not very large, then the problems begin with his performance. How true is this?

Some suggest zabbix, but I think that with a relatively small number of servers is as from a gun on sparrows. I have 2 instance of nodejs + mongodb with replication and sharding, I think that not really will be many.
October 3rd 19 at 02:35
Munin stuff is very good, I like the fact that you can easily write any plugin that is not "in a box".
For example I needed a plugin for monitoring nginx request time -

But if the question is real-time the monitor, I advise you to look towards New Relic

Find more questions by tags MongoDBSystem administrationMonitoringUbuntuNode.js