![]() ![]() Run PM2 action: Trigger a PM2 action (restart, reload etc) on the process that triggered the alert.Run a custom action: Trigger a custom action inside the application that triggered the alert.Send a webhook: Set the URL used to post the message.Send a slack message: Set the webhook URL used to post the message.Send an email: Choose the people in your bucket to send the alert to.When a alert is triggered, you can choose different Actions to run: Server Name: only trigger for application that are in a specific server.Application Name: only trigger for application with a specific name.Window: Choose how much time we will use the compute the average from.Treshold: Choose the value to not go above or under.Operator: Choose the operator that the value will be checked against (available: > ).Metric: Choose the metric value that will be watched.You can configure different conditions to trigger the alert: This feature allow to get alerted when a metric goes above a specific treshold that you configured. We also assume that you know how custom metrics and customs actions works. In the following documention, we assume that you already have connected your application to PM2 Enterprise (either on-premise and cloud). Your application will now be automatically restarted and you will receive an alert when it’s done. Set the action name to restart or reload.Select a PM2 action as action to perform.Filter the app/server depending on which app you want to restart.Create an alert when the memory usage goes above 500M.You can just ask PM2 to restart it with the Alerting: Given an example where your app leaks memory but you don’t have the time to inspect it right now. ![]() Restart your application if you know that somethings in wrong You can either download it or see it in the profiling inspector. When you will receive a notification, just check in the CPU Profile panel, you should have your profile that have been stored for you. Select another action to alert you that the threshold has been crossed (slack or email for ex.).Set the duration at 30 secondes (should be enough).Create an alert when the cpu usage goes above 70%.Or you could use the Alerting with the Profling to do that for you: You could also stay up late to run the profiling manually when the cpu spike. Given an example where you have a cpu spike in the night hours but doesn’t know why, you can explose your code base to try to understand it. Select an action to alert you that the threshold has been crossed (slack or email for ex.).Filter the app/server depending on which app you want to trakck.Select the metric that you want to get alerted on.The main use case of the feature is of course to alert you when metrics aren’t normal. Use cases Be alerted when a metrics go above a threshold You currently support 3 ways to be alerted: You can ask PM2 to restart your application (with you use the pm2 agent).You can run a function in your application (with the custom actions).You can trigger a profiling of any application (either the cpu or memory) that allows you to continuously profile your application, across release to increase performance or detect regression.However we do a somethings more, which intregrating with our APMs: The retrofit you choose is up to your personal preference.The alerting engine of PM2 Enterprise allows you to set alerts on metrics and receive alerts, like it’s possible with other monitoring solution. While the PM5 will fit on the existing monitor arm, the new monitor arm (included with PN 25) allows for improved monitor cord routing for a tidier overall finished look, and the ability to mount most phones and tablets. ¹ When retrofitting a PM5 to a Model D or Model E you have two options: to purchase just the Performance Monitor (PN 1818) or to purchase the Performance Monitor with new mounting hardware and the device holder (PN 2562 or 2565). If you are not sure which model indoor rower you have, visit /service for help. Important! Be sure to select the correct machine type, and for indoor rowers, the correct model type when purchasing this part.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |