Monit tutorial5/16/2023 ![]() Further, you can specify several mail servers that will be used to deliver alerts. To enable this option you need to change few lines in the main configuration file.īy default, Monit uses local host for sending emails. If you want to always have the latest updates on the monitored processes - just enable alerts and Monit will start sending emails to a specified address should any errors occur. The port address can also be changed to a custom one if security is a top priority. That’s it for now! You can share your thoughts about Nodejs application monitoring using PM2, with us via the feedback form below.After the web interface has been configured it can be accessed by this link. To remove pm2-server-monit from your server, run the following command: # pm2 uninstall pm2-server-monit Monitor Server Resources from PM2 Dashboard Now you can monitor your server resources from the web dashboard as shown in the following image. If PM2 is linked to, pm2-server-monit should automatically appear in the list of monitored processes. To install it, run the following command: # pm2 install pm2-server-monit Pm2-server-monit is a PM2 module to automatically monitor key aspects of your server such as CPU average usage, free and used drive space, free and used memory space, all processes running, TTY/SSH opened, the total number of open files, as well as network speed (input and output). Monitoring Your Server Resources Using pm2-server-monit Unlink Nodejs Server from PM2 Web DashboardĪfter running the above command, you can delete the server from the dashboard. ![]() To unlink a server from the monitoring dashboard, run the following command on the server to unlink: # pm2 unlink Monitor Nodejs Applications from PM2.io Dashboard If you are using version control, it also shows the branch and last merge details. It also shows the version of Nodejs and PM2 currently installed.įor each process, you will see the percentage of CPU and the amount of memory it is consuming, and much more. For each server connected, the dashboard shows you server hardware components such as the amount of RAM and CPU type. Now on the PM2.io main interface, you should have one server connected, showing a list of all your Nodejs processes in expanded mode. Then run the above command on the Nodejs application server. Next, link PM2 to PM2.io and copy the command provided as highlighted in the following interface. In this example, we have called our bucket TECMINT-APIs. PM2 SignupĪfter a successful login, create a bucket to group your Nodejs servers/applications. ![]() To start testing PM2 plus, go to, then sign up as shown in the following screenshot. The free plan allows you to connect up to 4 servers/applications. It features issues and exception tracking, deployment reporting, real-time logs, email and slack notification, custom metrics monitoring, and custom actions center. It provides features for both hardening your current PM2 and monitoring applications in production across servers. PM2 Plus ( PM2 Web Based Dashboard) is an advanced and real-time monitoring and diagnostics tool. Monitoring Nodejs Application Using PM2 Web-Based Dashboard To monitor and diagnose cross-server applications, use the PM2 web-based dashboard. The terminal-based monitoring only works well for applications running on a single server. To view logs of an app, first select it (use up/down arrows) from the process list. Once it running, use the left/right arrows to switchboards or sections. You can launch the dashboard by running the following command. PM2 provides a terminal-based dashboard that helps you monitor the resource (memory and CPU) usage of your application.
0 Comments
Leave a Reply. |