By default, the Agent streams Agent Process Metrics.
You can toggle this with the following configuration.
implicit_agent_process_metrics_monitor: false/true
If you would like to monitor other processes, you can use the Linux Process Metrics plugin or the Windows Process Metrics plugin. View the above links for full reference.
Sample Configuration Linux
Here is a simple configuration fragment showing use of the linux_process_metrics plugin. This sample will record resource usage for any process whose command line contains a match for the regular expression java.*tomcat6:
monitors: [ { module: "scalyr_agent.builtin_monitors.linux_process_metrics", id: "tomcat", commandline: "java.*tomcat6", } ]
Sample Configuration Windows
Here is a simple configuration fragment showing use of the windows_process_metrics plugin. This sample will record resource usage for any process whose command line contains a match for the regular expression java.*tomcat6:
monitors: [ { module: "scalyr_agent.builtin_monitors.windows_process_metrics", id: "tomcat", commandline: "java.*tomcat6", } ]
Comments
0 comments
Please sign in to leave a comment.