SAP Cloud ALM Metrics for CPI
Overview
The SAP CPI Cloud ALM Metrics Input collects CPI metrics from SAP CALM systems. SAP CALM has access to technical metrics that are not available directly from the CPI platform. This input collects these metrics and allows for correlation with the other datasets collected directly from CPI, enabling comprehensive monitoring and analysis.
Data Collected
SAP CPI CALM Metrics input collects the following metrics:
Datastore Usage
Tracks the utilization of data storage within CPI.
Provides insights into storage consumption trends and capacity planning.
Database Usage
Monitors the volume of data stored and queried within the database.
Helps identify inefficiencies in database operations and potential performance bottlenecks.
Database Connection Usage
Measures the number of active database connections.
Useful for ensuring the system does not exceed connection limits, which could impact performance or cause downtime.
Database Transaction Duration
Tracks the time taken to complete database transactions.
Provides visibility into transaction performance and identifies potential delays.
Use Cases
Capacity Monitoring
Monitor datastore and database usage to ensure sufficient resources are available to handle current and future workloads.
Performance Optimization
Use metrics like transaction duration and connection usage to optimize database operations and prevent slowdowns or failures.
Troubleshooting and Root Cause Analysis
Analyze database metrics to pinpoint issues affecting integration performance, such as slow transactions or over-utilized connections.
Proactive Alerting
Set thresholds for metrics such as connection usage or datastore utilization to receive alerts before critical limits are reached.Status
Status
Available
Configuration
Retrieving SAP Cloud ALM service key details
Log on to the SAP BTP cockpit.
Click on your SAP Cloud ALM global account, then on your SAP Cloud ALM sub-account.
In the navigation panel, choose Services > Instances and Subscriptions.
Under Instances click on the relevant instance of the service SAP Cloud ALM API
In the area that opens, choose Service Keys.
You see your service key in JSON format. The key includes the application URL, service URL, client ID, and client secret.
Note down the endpoint api, identityzone (tenant name), url, client id and client secret
Adding a CPI CALM Metrics Input in PowerConnect Cloud
Login to the PowerConnect Cloud web UI
Click on the Inputs link in the menu bar
Click the + button to add a new Input
Select CALM
Select metrics under sap-cpi
Fill out the details of you SAP CALM tenancy where:
SAP CALM tenant url = e.g. https://<tenant name>.<region>.alm.cloud.sap
e.g. https://mytenant.ap10.alm.cloud.sapSAP CALM token url = https://<tenant name>.authentication.<region>.hana.ondemand.com/oauth/token
e.g. https://mytenant.authentication.ap10.hana.ondemand.com/oauth/tokenClient Id = clientid
Client secret = clientsecret
CPI Service ID (LMS ID) = this is the CPI service ID which can be found in SAP Cloud ALM under:
Landscape Management → <CPI Service Name>
Choose the Output you wish to send the CPI Runtime Artifact data to
Click Save
The Input is now created
Configuration Options
Configuration | Description | Required | Default Value | Comments |
---|---|---|---|---|
How frequently to poll for new data in seconds | How often the input will check for new metrics | True | 60 | Â |
Unique Identifier for the Input | A unique ID for the input | True | Â | Spaces are not allowed |
Friendly name for the Input | Friendly name for the input | True | Â | Â |
System ID | System ID (or SID) of the system. The value of this field will be mapped to the source field in Splunk/Dynatrace and is used in dashboards for grouping related system events | True | Â | Â |
Lag in Seconds | How far behind the input will lag in seconds | True | 60 | This setting is to deal with SAP APIs that sometimes lag behind under high load |
Enable Data Collection | Enable / Disable the Input | True | True | Â |
SAP CALM Tenant URL | The SAP Cloud ALM tenant url | True | Â | Â This is the base tenant url without the path |
SAP CALM Token URL | The SAP Cloud ALM token URL | True | Â | Â Must include /oauth/token |
Client ID | API Client ID | True | Â | Â |
Client Secret | API Client Secret | True | Â | Â |
CPI Service ID (LMS ID) | The Landscape ID of the CPI tenancy you wish to monitor in SAP CALM | True | Â | Â |