KB 214 - How to generate and send KPIs/Metrics
KB 214 (ABAP): How to generate and send KPIs/Metrics
Category: Information | Priority: High |
---|---|
Platform: ABAP | Version: 1 from 28.11.2024 |
Description
In some case it might be needed to extract certain KPIs from processed data and send it as a metric to platforms which support metric ingest.
Resolution
Starting from PowerConnect SP 8.03 it is possible to use Administrator->Setup Metric->KPI Definitions to generate KPI based on collection data and send it to the appropriate connections.
in SP 8.03 it is possible to send KPIs as metrics to following endpoints:
Splunk Observability (sent as OpenTelemetric datapoint)
Splunk HEC (send as regular event)
Dynatrace native metric endpoint
Dynatrace OpenTelemetry endpoint (sent as OpenTelemetric datapoint)
Please note that functionality does not extract any additional data, however KPIs are generated using the data collected by existing extractors.
Please following steps below to create necessary KPIs. All KPIs will be sent under _METRICS_ event subtype.
Create dedicated KPI subgroup (if necessary)
Open Administrator->Setup Metric->KPI Definitions
Double-click on Custom group in the left panel and click.
This group should be always used for custom KPI definitions.
Populate group details based on the context, set Active flag and confirm
Create KPI definition
Select the group by double-clicking on it. The title should be changed to the name of defined group
Click on Create KPI button Populate
Name: should be in lowercase and not contain spaces or any non-readable characters
Description: free text to describe the KPI
Active: used to activate/deactivate KPI extraction
Applicable for section is used to select Group Definition/event type and Subgroup/subtype, which will be the source of the KPI data
Calculation Rule section contains the rule on how to create KPI value.
Field: the field name, which exists in the selected Group/Subgroup defined in the section above
Dimensions: used to aggregate data per certain dimensions like Instance name. Indicated fields should exists in the selected Group/Subgroup defined in the section above
Function: aggregation rule used to generate the value. Following values/functions are supported:
None - no aggregation made and the value is taken as is from each event (can generate a lot of metrics in case there is big dataset)|
Average - average value is calculated
Sum - total sum
Max - maximum value
Min - minimum value
Count - count of events in the batch
Unit: free text, which would describe the unit
Confirm the dialog
Define conditions (if necessary)
Once KPI definition is saved, it is possible to filter out events which will be considered during KPI calculation by pressing on the Condition button at specific line:Conditions are following standard range definition format. Please find below the sample of conditions used to pick only busy dialog work processes.
Confirm and Save dialog
Product version
Product | From | To |
* | 8.03 | * |