Note
This section is part of the Extend Monitoring and Alerting Infrastructure with CCMS Metrics process. This process shows how you can extend technical monitoring with additional, previously not monitored CCMS metrics. Perform the previous steps in the process.
You determined the data collector and its input parameters from the attributes of the CCMS metric, in Determine and Test the Collector. This section tells you how to use this information to create the required MAI metrics.
Metrics, whether delivered by SAP or created by the customer, are templates in technical monitoring, which you create and edit in SAP Solution Manager configuration (see Using Templates). This section describes how to create a customer template, and create the new MAI metric in it.
Proceed as follows:
Start SAP Solution Manager Configurations
(transaction SOLMAN_SETUP).
Go to Technicals Monitoring
, the monitoring use case System Monitoring
, and step Template Management
.
Switch to editing mode.
Expand the type of a managed object and product for which you want to create a custom template, in the Templates
navigation bar. This navigation bar contains all templates delivered by SAP.
Select the SAP-delivered template on which to base your template, and choose Create Custom Template
. To edit a custom template, select it.
Note
CCMS metrics usually belong to product group SAP ABAP. Depending on whether the CCMS metric is instance-specific or system-wide, the templates delivered by SAP would be, for example:
You are in Template Management, and have created a customer template. Create a new MAI metric in this template:
Go to edit mode, and then to expert mode.
To create a new metric, choose
. A customer metric creation wizard starts.Enter the general attributes of the new metric in the Overview
tab:
Attribute | Comments |
---|---|
| Descriptive metric name; the metric is displayed in technical monitoring under this name |
| Category to which the metric thematically belongs. Possible categories are |
| Leave the value |
| Choose the entry closest to the data type of the CCMS metric. This is usualIy a |
| If the CCMS metric has a unit, choose it. |
| Do not change this entry. |
| Specify a technical name for the metric. The name must be in customer namespace, so it starts with Z. |
| Enter a description of your metric. |
Go to the Data Collection
tab. Specify the technical connection to the CCMS metric to be integrated into MAI:
Attribute | Comments |
---|---|
| Enter the Type |
| Enter the value which you determined in Determining the Collector, depending on the CCMS metric. |
| |
|
Go to the Data Usage
tab. Specify the applications for which you use the new metric:
Leave the Send Values to Event Calculation Engine
flag active. This ensures that the metric is available in technical monitoring.
If you also want to use the metric for reporting (e.g. for the Metric Monitor), set the Send Values to SAP NetWeaver Business Warehouse
flag. In this case, also specify other attributes:
Specify naming rules for storage in BW, in the dropdown list BW Mapping Rule
. Choose the following rule, depending on theData Collector Name
in the previous step:
Data Collector Name | BW Mapping Rule |
---|---|
|
|
|
|
In the dropdown list Granularity
, specify how long the metric is to be retained in its various resolutions. Choose Optimized for Metric Monitor
.
Go to the Threshold Value
tab. Specify the threshold types and values for the new metric. Note:
If the new metric delivers a numeric value (this is always the case when the underlying CCMS metric is a performance attribute ), choose a numerical threshold value type and a threshold value. To copy the threshold values directly from CCMS, choose the threshold value type Numeric Threshold (GtoY/YtoR/RtoY/ytoG)
, and enter the threshold values.
CCMS metrics of type status attribute () or log attribute () are usually already rated. If so, choose the threshold type Already Rated
.
Go to the Validity
tab. You can further restrict the validity of the metric. You would not usually do so.
Go to the second step (Assignments) of the customer metric creation wizard. You can assign an alert to the metric. Skip this step because there is not yet a suitable alert for the new metric. Choose Finish
, to complete the creation of the metric.
Save the template when you have created the metric.
You have created a new MAI metric, based on a CCMS metric, in a customer template. You can display this metric in the Metrics
tab of the template. You now need a customer alert for the metric.
When you have created your MAI metric, you can test the data collection, in particular to check that you have used the correct data collector and input parameters. Proceed as follows (the template in which you created the metric is open for editing in expert mode):
Go to the Metrics
tab, and select the metric.
Go to the Metric Type Details
in the Data Collection
tab.
In the heading of the table Collector Input Parameters
, choose Test
.
You can test the data collector in the new screen Test Data Collector
. Choose the managed object which you want to test, and choose Copy
. The RFC destination to this managed object is displayed.
To call the collector with the selected input parameters, choose Execute
. The results are output in the group box of the same name.
The next section (Creating Alert Types for New MAI Metrics) tells you how to create an alert for the newly-created metric.