Configure an Aggregator as a processor
Use the Aggregator processor to calculate aggregate values over incoming usage events without reducing the number of records.
- Navigate to Mediation > Meters
- Create a Custom meter.
- Select Aggregator as the processor. The Aggregator settings page is displayed.
- Enter a name for the aggregator component.
The Operator ID is a system‑generated, non-editable identifier for this operator, used in audit and API integrations.
- In the Partition By field, select the fields you want to group events by.
Events that share the same values for these fields belong to the same partition or group.
- (Optional) In Field to Sort By, choose the field that defines the order of records within each partition. Also specify the Sort Order by selecting Ascending or Descending.
Typically this is a timestamp field such as eventTime or UsageDate. Use a sort field when the order of events matters for your aggregation logic, for example when you use the delta operator.
- In the aggregation section, define the aggregates you want to compute for each partition.
- For each aggregate field, select an Operator such as sum, avg, min, max, count, or delta.
- Select the Source Field that you want to aggregate.
- Enter the Result Field name where the aggregate value will be stored.
If you reuse the same name as the source field for the result field, the original field is overwritten. If you specify a new result field name, the source field is preserved and the aggregate value is added as a new field.
- Use the Add Field option to define multiple aggregate operations in one configuration, for example to calculate sum, avg, and delta for the same source field.
- (Optional) In Advanced Aggregation, you can configure custom JavaScript or Python logic to process events using more complex rules.
Use this feature carefully in high-volume environments because custom code can impact performance.
- Click Save to save the processor settings.