---
sourceDocument: Australia Telecom Service Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/telecom-service-ops

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Telecom Service Operations Management

ft:clusterId :

    - tsom

bundleId :

    - tsom

workflow :

    - Customer and Industry


---

# Metric aggregation modes

# Metric aggregation modes {#ariaid-title1}

Release version: Australia  
Updated November 19, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Metric aggregation modes

Metric aggregation in ServiceNow enables you to roll up raw metrics collected from individual network resources into calculated metrics on parent or anchor configuration items (CIs).
This capability allows you to view metrics at higher levels of the network hierarchy or across defined resource ranges, addressing the limitation where raw metrics are only available per individual resource.
Show full answer Show less  
Aggregation runs as scheduled jobs that call a scripted extension point, applying aggregate functions like average, sum, maximum, minimum, count, or 95th percentile to related sets of resources. The calculated metrics become available for viewing once they are bound to their respective CIs.

## Key Features

* **Aggregation Modes:**
  * **Hierarchy mode:** Traverses CMDB relationships downward from each target CI to collect source CIs and writes one calculated metric per target CI. Ideal for rolling up per-cell metrics to parent resources such as Baseband Units (BBUs) or Network Sites.
  * **Flat mode:** Selects source CIs directly using filters like name range or field values and writes a single calculated metric onto one anchor CI. Suitable for range-based or fleet-wide metrics where no parent CI exists.
* **Aggregate Functions:** Supports average (avg), sum (sum), maximum (max), minimum (min), count (count), and 95th percentile (p95).
* **Configurable Scheduled Jobs:** Aggregations are configured as scheduled jobs that invoke a scripted extension point, enabling new aggregation definitions without modifying product code.
* **Filtering:** In flat mode, you can filter resources by name ranges or field values, such as operational status, to include only relevant resources in the aggregation.
* **Metric-to-CI Binding:** After aggregation, an event binds the calculated metric to the CI, storing it in the metric base for viewing.

## Considerations

* Hierarchy mode includes a depth limit to control how far the CMDB traversal goes, preventing unintended aggregation beyond target resources.
* In flat mode, an anchor CI must be specified to hold the aggregated metric since there is no natural parent CI.
* Aggregations run according to the schedule set on their jobs, and calculated metrics become visible after successful runs and metric-to-CI binding.

## Practical Benefits

* Enables viewing aggregated metrics at meaningful levels such as BBUs or Network Sites instead of only at individual cells.
* Allows aggregation across defined resource ranges or fleets, supporting broader analysis and reporting.
* Offers flexibility to create custom aggregation logic through configuration without needing product code changes.  
Metric aggregation rolls up raw metrics collected from individual network resources into calculated metrics on parent or anchor configuration items (CIs). The aggregation mode determines how source resources are selected and
where the aggregated result is published.
By default, a pull connector collects raw metrics and publishes one value per network resource, such as a single metric value for each mobile cell. There is no built-in way to combine those per-resource values into a
higher-level metric.

Metric aggregation addresses this gap. It reads the raw metric values for a set of related resources and applies an aggregate function such as average, maximum, or minimum. It then publishes a calculated metric so that the result can be viewed at a higher level of the network. An aggregation runs as a scheduled job that calls the metric aggregation scripted extension point.

## Key benefits {#metric-aggregation-modes__section_benefits}

Metric aggregation provides the following benefits:

* View metrics at higher levels of the network, according to Baseband Unit (BBU) or per Network Site, instead of only per cell.
* Aggregate metrics across a defined range of resources, such as a range of SIM cards.
* Define new aggregations without changing product code by configuring scheduled jobs that call a scripted extension point.

## How it works {#metric-aggregation-modes__section_how_it_works}

Each aggregation runs in one of two modes. The mode determines how source resources are selected and where the calculated metric is published.

Hierarchy mode
:   The aggregation traverses configuration management database (CMDB) relationships downward from each target CI to collect the matching source CIs, then writes one calculated metric onto each target CI. Use hierarchy
    mode to roll per-cell metrics up to each parent resource, according to BBU or per Network Site.

Flat mode
:   The aggregation selects source CIs directly, optionally filtered by a name range or by field values, and writes a single calculated metric onto one anchor CI. Use flat mode for range-based or fleet-wide metrics where
    no single parent CI exists to hold the result.

A range identifies a contiguous set of resources by name, such as a range of SIM cards. You can also apply field filters so that only resources meeting a condition are included in the aggregation. For example, you can filter to include only resources whose operational status indicates that they are active.

An aggregation runs one of the following functions, set through the `aggregate` parameter: average (`avg`), sum (`sum`), maximum (`max`), minimum (`min`), count (`count`), and the 95th percentile (`p95`).

After an aggregation run produces a calculated metric, the metric base framework raises an event to bind the metric to a CI. After the metric-to-CI binding completes, the calculated metric is stored in the metric base
(Clotho) against the bound CI and becomes available to view.

## Considerations {#metric-aggregation-modes__section_considerations}

Consider the following when you plan an aggregation:

* In hierarchy mode, a depth limit bounds how far the traversal descends through the CMDB. The depth limit helps prevent the traversal from following relationships beyond the resources you intend to aggregate.
* In flat mode, the calculated metric is not tied to an existing parent CI, so you specify an anchor CI to hold the result.
* An aggregation runs on the schedule defined for its scheduled job. Calculated metrics appear after the next successful run and metric-to-CI binding.
**Related concepts**   

* [Metric aggregation scripted extension](https://www.servicenow.com/docs/sCfbVO06T2wcuRt9of94DQ "You can define custom KPI calculations on top of raw metrics collected from source systems. Configurable formulas combine, aggregate, and label metrics without requiring code changes to the platform.")
* [Metric-to-CI binding](https://www.servicenow.com/docs/JF0CHrYmqgUtF4uN1Iggiw "Metric-to-CI binding associates metrics collected by a pull connector with configuration items (CIs) in the Configuration Management Database (CMDB). Default binding logic is used for each supported connector, which you can override with a custom implementation.")
* [MPN data model](https://www.servicenow.com/docs/MCMKE90bwYmWlYepmX43uA "The Mobile Private Network (MPN) data model extends the Telecom data model to represent the physical hardware and virtual network functions that make up a mobile private network. It also represents the relationships that connect them.")  
**Related tasks**   

* [Configure a metric aggregation job](https://www.servicenow.com/docs/n2HcANnpIL8MnmKqroJVgw "Configure a scheduled job to aggregate raw metrics into a calculated metric on a parent or anchor configuration item (CI). Aggregated metrics let you view performance data at a higher level of the network.")
* [Create a custom metric aggregation implementation](https://www.servicenow.com/docs/A3mypvXGADWBhbL0Bl7akA "Create a custom implementation of the metric aggregation scripted extension point when the default aggregation modes don't cover a calculation you need.")  
**Related reference**   

* [Metric aggregation configuration reference](https://www.servicenow.com/docs/F5Ih3JFaVTsMXmn93Tme4A "The configuration object passed to the metric aggregation scripted extension point defines what to aggregate, how to aggregate it, and where to publish the result. The parameters that apply depend on the aggregation mode.")

