Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Nikola_Simeonov
Product and Topic Expert
Product and Topic Expert
358
SAP Monitoring service for SAP BTP provides default CRITICAL and WARNING thresholds for some default metrics of a Java application. For the list of the default metrics, see Default Metrics of a Java Application.

However, you might experience issues with these default thresholds as they might not be low or high enough for your use case. As a result, you receive alert notifications more frequently or more rarely than needed. To fix such issues, you need to configure different thresholds than the default ones.

We are glad to announce that you can now override the default thresholds for a Java application with your own custom ones.

There are 2 alternative ways to configure the custom thresholds:

Furthermore, if you are also unhappy with your new custom settings for the thresholds, you can always reconfigure them or revert to the default ones by using the SAP BTP cockpit or the REST API.

Example


Donna Moore uses a Java application in the Neo environment located in the Australia (Sydney) region. Her Java application works well for her, but it sends warning alerts for the CPU Load metric too often. Consequently, she realizes that her WARNING threshold is too close to the CRITICAL one. She finds in the SAP BTP cockpit that by default SAP Monitoring service sets 80% for the WARNING threshold and 90% for the CRITICAL one. Thus, Donna decides to reduce the WARNING threshold to 60% to resolve her issue with the frequent alerts. She opens the SAP BTP cockpit, navigates to the Default Checks Thresholds tab of the Application Monitoring page, and edits the value there.

Alternatively, she can set the new thresholds with the following POST REST API call:

https://api.ap1.hana.ondemand.com/monitoring/checks/v1/accounts/Donna_subaccount/apps/Donna_applicat...,

Body:
{

“checkName”: “CPU Load”,

"warning": "60",

"critical": "90"

}

After a while, she realizes that the WARNING threshold of 60% is too low for her use case and decides to update it to 70%. She again opens the SAP BTP cockpit and edits the value there.

Alternatively, she can set the new thresholds with the following PUT REST API call:

https://api.ap1.hana.ondemand.com/monitoring/checks/v1/accounts/Donna_subaccount/apps/Donna_applicat...,

Body:
{

“checkName”: “CPU Load”,

"warning": "70",

"critical": "90"

}

We’d appreciate your feedback on this functionality, your pain points while using it, and any suggestions for improvements.