Skip to content

nikolasimeonov77/cloud-metrics-dashboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-metrics-dashboard

Intro

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:

  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.

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.

Configuration

Download this project locally and follow the instructions in Tutorial: Implementing a Dashboard Application.

Authors

Yavor Mladenov

Nikola Simeonov

Copyright and license

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.

Releases

No releases published

Packages

No packages published

Languages

  • Java 49.7%
  • JavaScript 45.7%
  • HTML 4.6%