How to set up alert notifications in AppLoader/AppsWatch?

This article provides steps on how to set up alert notifications for resources in AppLoader/AppsWatch.

When it comes to running a test or monitoring an application, there are many factors involved which can cause a load test or an application monitor to perform slowly. One of them can be resource issues. Sometimes tracking resource metrics can be difficult for many reasons. Therefore, receiving alerts can be helpful to identify and address the resource issues before they impact your tests or systems. Alerts proactively can notify you when important conditions are found. For example, you can get notified if the CPU is at 100%, the system disk is out of space, etc.

Changing alert notifications in AppLoader

By default, AppLoader sends warnings and alerts as notifications for the following events based on a defined condition:

  • Low disk space available on a drive where AppLoader is installed. 
  • High CPU usage and CPU threads in Injector machine.
  • Low available physical memory in Injector machine.
  • Low disk space available on a drive where Injector is installed.

When the criteria is met, an alert is triggered and notification is displayed on the top right of the navigation pane in the AppLoader Controller. Clicking on the notification icon opens a window that lists all warning/alert messages.

Warnings_Alerts

To modify the default condition, follow these steps:

1. Go to the machine where AppLoader is installed.

2. Go to "...\Automai\AppLoader\apps\includes" folder and open "alert_thresholds.ini" using a Text Editor app (Notepad or Notepad++).

[controller]

disk-alert = 1000
disk-warning = 2000

[player]

player-disk-alert = 1500
player-disk-warning = 1200
player-memory-alert = 1500
player-memory-warning = 2000
player-cpu-alert = 100
player-cpu-warning = 90
player-thread-alert = 20
player-thread-warning = 10

3. Set the desired metric value(s). 

4. Once you are done, save the file and close it.
5. Open "Task Manager", go to "Services" and restart all AppLoader services.

Screenshot_78-2

6. The alert status will be retrieved. 
Example:
[controller]

disk-alert= 3000
disk-warning = 2000

[player]

player-disk-alert = 1500
player-disk-warning = 1200
player-memory-alert = 1500
player-memory-warning = 2000
player-cpu-alert = 100
player-cpu-warning = 80
player-thread-alert = 20
player-thread-warning = 10

Besides the default notifications, it will send an alert message when 3000 MB disk space is left on the drive where AppLoader is installed and a warning message when total CPU is at 80% in the Injector machine.

Tip: In case of resource issues, one of the most effective ways to improve the test performance is to upgrade the physical or virtual machine(s) where the load test is running.

Changing alert notifications in AppsWatch

By default, AppsWatch only sends warnings and alerts as notifications for the following event based on a defined condition:

  • Low disk space available on a drive where AppsWatch is installed. 

When the criteria is met, an alert/warning is triggered and notification is displayed on the top right of the navigation pane in the AppsWatch Base. Clicking on the notification icon opens a window that lists all warning/alert messages.

Alerts_Warnings

To modify the default condition, follow these steps:

1. Go to the machine where AppsWatch is installed.

2. Go to "...\Automai\AppsWatch\apps\includes" folder and open "alert_thresholds.ini" using a Text Editor app (Notepad or Notepad++).

[controller]

disk-alert = 1000
disk-warning = 2000

[player]

player-disk-alert = 1500
player-disk-warning = 1200
player-memory-alert = 1500
player-memory-warning = 2000
player-cpu-alert = 100
player-cpu-warning = 90
player-thread-alert = 20
player-thread-warning = 10

3. Set the desired metric value(s). 

4. Once you are done, save the file and close it.
5. Open "Task Manager", go to "Services" and restart all AppsWatch services.

Screenshot_81-2

6. The alert status will be retrieved.
Example:
[controller]

disk-alert= 3000
disk-warning = 2000

[player]

player-disk-alert = 1500
player-disk-warning = 1200
player-memory-alert = 1500
player-memory-warning = 2000
player-cpu-alert = 100
player-cpu-warning = 90
player-thread-alert = 20
player-thread-warning = 10

Besides the default notifications, it will send an alert message when 3000 MB disk space is left on the drive where AppsWatch is installed.