Monitor Nodejs process stats using metricbeat


(Varun Karuturi) #1

Hi,

I have few nodejs processes running in my machine, Could you please help me out on how to monitor the nodejs process using metricbeat.

I basically need to monitor the cpu, memory, etc for each node process. Please give me suggestions or also let me know if there are any other ways to monitor these


(Pier-Hugues Pellerin) #2

Hello,

You can filter process that you want to monitor in metricbeat,

metricbeat.modules:
- module: system
  metricsets: ["process"]
  processes: ['.*']

The previous example will grab information for all the processes, but you could use a more strict regular expression like this "nodejs.*", or you can look at the documentation enhanced filtering options which will give you even better control.

Also if theses nodejs are web service, you might want to try the apm-server this will give you insights into your requests/response code.


(Varun Karuturi) #3

thanks for the reply.

But the question here is that we are able to get the system metrics(CPU, Load, Memory, etc.,) for all the node services but we want to capture the system metrics(CPU, Load, Memory, etc.,) individually for each process like the way we do it in Icinga or Nagios

We tried with the below syntax but we are unable to monitor the individual node process

metricbeat.modules:

  • module: system
    metricsets: ["process"]
    processes: ['node.']
    input.field.with.regexp:
    system.process.name: ['foo.
    ']

Please provide your inputs on how to monitor each node process on the Kibana dashboard


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.