Answer the question
In order to leave comments, you need to log in
Monitoring Ubuntu Server with nodejs/mongodb
There are two Ubuntu VPS Servers with NodeJS and MongoDB installed (on different servers). I want to implement real-time monitoring of them. I would like to collect statistics on cpu, memory usage, average request processing time, MongoDB statistics, etc., as well as with my own custom statistics (for example, the number of errors), and show such graphs on the client: s13.postimg.org/yikered1j/graph .png
I have never done anything like this before, I would like to know from you which utilities are best to do this, and preferably with detailed setup instructions.
The main task is to monitor statistics on the client.
Answer the question
In order to leave comments, you need to log in
Any monitoring system will do.
There is an example for MongoDB on their off site for Munin. We write a plugin for our needs, writing plugins is extremely simple.
docs.mongodb.org/ecosystem/tools/munin/
For Node
github.com/newleafdigital/nodejs-munin
The server, as above, was written through munin, it is convenient to draw graphics. Every node.js application can be conveniently monitored with this nodefly.com thing . You can collect errors, for example, with this bugsnag.com , they have a module for node.js
I would like to use one single tool to monitor all the components I need. They write about Munin that the thing is good, while the number of servers is not very large, then problems with its performance begin. How true is this?
Some people advise zabbix, but they think that with a relatively small number of servers, it's like a cannon on sparrows. I have 2 nodejs + mongodb instances with replication and sharding, I don't think there will be much.
Munin is a very good thing, I like the fact that you can easily write any plugin that is not "in the box".
For example, I needed a plugin for monitoring nginx request time - letsclearitup.com.ua/debian/pishem-svoy-plugin-dly...
But if the issue is real-time monitoring, then I advise you to look towards New Relic
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question