Implement a Dashboard Application for Monitoring Java Apps
- How to configure a custom application that retrieves metrics for Java applications running in the Neo environment.
Prerequisites
- To test the entire scenario, you need subaccounts in two regions: Europe (Rot/Germany) and US East. For more information, see Regions and Hosts Available for the Neo Environment and SAP BTP Cockpit.
- To retrieve the metrics from Java applications, you need two deployed and running Java applications. For more information, see Java: Application Operations.
- You have installed Maven.
- You have downloaded and set up your Eclipse IDE, SAP BTP Tools for Java, and SDK.
For more information, see Setting Up the Development Environment.
The application you create shows the states of the Java applications and can also show the state and metrics of the processes running on those applications.
This tutorial uses a Java project published on GitHub. This project contains a dashboard application that requests the metrics of the following Java applications (running in SAP BTP, Neo environment):
-
app1
located ina1
subaccount andEurope (Rot/Germany)
region -
app2
located ina2
subaccount andUS East
region
After receiving each JSON response, the dashboard application parses the response and retrieves the name and state of each application as well as the name, state, value, thresholds, unit, and timestamp of the metrics for each process. The data is arranged in a list and then shown in the browser as a dashboard.
For more information about the JSON response, see SAP Monitoring Service Response for Java Applications.
To learn more about the whole scenario, read the Dashboard Scenario blog post.