Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
ArishS
Explorer
381

SAP Alert Notification Service is a powerful service available on the Business Technology Platform (BTP) that helps you to monitors your applications and sends alerts when something goes wrong like an application crash so you can take immediate action.

Few things to which are required to setup beforehand:

  1. A subaccount in SAP BTP.
  2. A space created within that subaccount.
  3. Required services (capm) deployed in that space to enable monitoring.
  4. To use the Alert Notification Service, it must be subscribed within your BTP subaccount.

Now Let's create and configure Alert Notification Service

Arish1_1-1758266201206.png

Once Create, Make sure this configuration is enabled already within the instance parameters

Arish1_2-1758266588430.png

 

 

 

 

 

 

 


There are few terms which is very important and are explained below:

  • Events: These are the triggers specific occurrences like application crashes that the system watches for.
  • Actions: These define what should happen when a particular event is detected
  • Subscription: This is the link between events and actions. It listens for selected events and executes the configured actions when those events occur.
Flow within the Alert Notification Service:

Subscription will act as your entry point. It listens to all incoming events but only responds to the ones it’s configured for. Once a matching event is detected, it triggers the corresponding action

Arish1_3-1758267167792.png

Configuring the Alert Notification Service:

Open the ANS dashboard, follow these steps to begin monitoring application crashes:

  1. Navigate to the "Conditions" menu.
  2. Create a new condition and set the Event Type to: app.crash
  3. This condition will help ANS identify and respond to application crash events.
Arish1_4-1758267656987.png
Now That the Condition Is Set, Let’s Create an Action

Next, head over to the “Actions” menu from the left-hand panel in the Alert Notification Service dashboard. This is where you’ll define what should happen when your configured event like app.crash is triggered.

Select Action Type as Email and click on next

Arish1_5-1758267831119.png

In the Actions menu, start by entering a name for your action. Then, specify the email address where you want to receive alert notifications and click on Create button

Arish1_7-1758268104613.png

Note:  After adding your email address to the action, you’ll receive a confirmation email. Make sure to verify it before moving forward - this step is essential to start receiving alert notifications.

Now That the Action Is Set, Let’s Create a Subscription

Next, head over to the “Subscriptions” menu from the left-hand panel in the Alert Notification Service dashboard. 
Give some meaningful name and description and select your newly created action and condition as shown below:

Arish1_8-1758268602296.pngArish1_10-1758268680740.png

 

 


 




 

 

 

 

 

 

Note: You might see a section called store-events in the dashboard. This was created for a different purpose, so feel free to ignore it during your setup - it’s not relevant to the current configuration.

Click Save, and just like that you’ve successfully created a subscription! Your Alert Notification Service is now ready to listen for events and take action as configured.

From now on, whenever a service crashes within the same space where your Alert Notification Service instance is set up, you’ll receive an email notification, just like the one shown below. 

 

Arish1_11-1758269451888.png

Conclusion
Using SAP Alert Notification Service, we can now monitor services in real time. If any service crashes, we’ll receive instant alerts containing detailed information about the event.

1 Comment