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
Advisor
Advisor


Note: This blog post is outdated. Please find the up-to-date version at Use the Monitoring Service to Retrieve Metrics from Different Java Applications in the Neo Environme....

Overview


You can use the monitoring service of SAP Cloud Platform to receive states and metrics of SAP Cloud Platform Java applications as well as of the applications’ processes. These Java applications can be in different SAP Cloud Platform subaccounts or even on different hosts (regions). For more information about the currently supported regions and their hosts, see Regions and Hosts Available for the Neo Environment.

The only requirement is that your user is a member of the subaccounts that the Java applications are located in. For more information about how to check subaccount memberships, see Add Members to Your Neo Subaccount.

To achieve this, you only need to develop a custom dashboard application that will display the metrics you need in the way you prefer. You can also use this application in your corporate network or in the SAP Cloud Platform network. Furthermore, you can choose your own UI technology for this dashboard application. For example, you can use SAPUI5 or SAP Fiori.

 


Process Flow


The communication between your dashboard application and the monitoring service works as follows:


  1. An operator accesses a dashboard application in the web browser.

  2. The dashboard application requests metrics of a Java application from the monitoring service with a REST API call. For more information about the REST call, see Monitoring API.

  3. The monitoring service sends back a JSON response with a status code 200 OK. The response contains the state and metrics of the requested application.

  4. The dashboard application parses the JSON response and places the metrics in a list.

  5. The dashboard application requests the metrics of other Java applications by repeating steps 1 to 5.

  6. The dashboard application’s UI uses the list with metrics to display those metrics in the browser.


 

Example


Donna Moore, as an operator of Company A, would like to use a central application to monitor the company’s Java applications and their processes. Company A is located in Europe, but it has a subsidiary in the United States (us1 region). Furthermore, the company uses the following Java applications:

  • app1 - an application created for a1 subaccount and used in the Europe (Rot/Germany) region.

  • app2 - an application created for a2 subaccount and used in the US East (Ashburn/VA) region.


For that purpose, Donna asks her developers to implement a dashboard application according to the instructions in Tutorial: Implementing a Dashboard Application

 


Conclusion


This blog describes a scenario in which you retrieve metrics of Java applications running on SAP Cloud Platform. However, your scenario might also include components from other platforms such as on-premise systems, other cloud systems, or public services. In that case, you can extend the dashboard application or your company tool to show the necessary metrics for such a scenario.

 


More Information



2 Comments