You can use the monitoring service of SAP Cloud Platform to receive states and metrics of SAP Cloud Platform Java applications and the applications' processes. These Java applications can be in different SAP Cloud Platform subaccounts or even on different regions. For more information about the currently supported regions and their hosts, see Regions and Hosts.
The only requirement for this scenario to work 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 Managing Members in the Neo Environment.
The communication between your dashboard application and the monitoring service works as follows:
-
An operator accesses a dashboard application in the web browser.
-
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.
-
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.
-
The dashboard application parses the JSON response and places the metrics in a list.
-
The dashboard application requests the metrics of other Java applications by repeating steps 1 to 5.
-
The dashboard application's UI uses the list with metrics to display those metrics in the browser.
This cloud-metrics-dashboard application is implemented to retrieve the state of two Java applications and the state and metrics of all the processes running on the two Java applications. However, you can change or extend this dashboard application to match your scenario.
Download this project locally and follow the instructions in Tutorial: Implementing a Dashboard Application.
Yavor Mladenov
Nikola Simeonov
Copyright (c) 2016 SAP SE
Except as provided below, this software is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.