You can create a metric provider in ABAP Development Tools to make your own metrics available for health monitoring of your ABAP system.
You've created a class implementing the interface IF_GSM_API_PROVIDER. This class defines your metric model.
With the creation of a metric provider, you register your metrics that are defined in the class for a periodic collection of values.
For more information about creating metric providers, see the documentation in ABAP Development Tools.
-
To create a metric provider in ABAP Development Tools, choose New > Other > ABAP Repository Object > Observability > Metric Provider.
-
In the wizard, enter a package, name, and description.
A metric provider is created.
-
In the metric provider, as implementing object, enter the class that defines your metric model for this metric provider (see Creating a Class for Metric Providers ).
-
Under Execution, select the priority with which the values of this metric provider must be collected.
The execution mode is set to Job, which you can't change. The collection of metric values is executed by an application job that your administrator must schedule (see Collect Metric Provider Values (Administrator)). The application job runs regularly and collects the values of all metric providers using their
GET_METRIC_VALUES( )methods.Set a higher priority for metric providers that you consider as more important than others. A higher priority ensures that the values for these metric providers are collected first by the application job. Make sure that metric providers that are dependent on the values of other metric providers have a lower priority than the metric providers on which they depend.
-
Leave the field Scope Dependent set to No.