Scalyr Agent has the capabilities to collect your application process metrics with monitors plugin. For example, to monitor a custom NodeJs application, you can simply add the linux_process_metrics
plugin to the agent config file and include the command that starts the Node application.
monitors: [
{
module: "scalyr_agent.builtin_monitors.linux_process_metrics",
id: "tomcat",
commandline: "node",
}
]
This config will record resource usage for any process whose command line contains a match for the regular expression node
. You should adjust the commandline parameter according to your own environment.
Optional configs such as "aggregate metrics" and "include child process" are also available if you view the metric as a total sum with the sub-processes. Please refer to our official documentation for more information.
https://app.scalyr.com/help/monitors/linux-process-metrics
Comments
0 comments
Please sign in to leave a comment.