Segmentation

When segmented, a metric monitor will look for anomalies within each distinct segment of data, instead of the table as a whole. This helps to isolate and "louden" segment-specific anomalies that could otherwise be diluted and missed. Common fields to segment by include products, regions, event types, versions, sources, and merchants.

There are two options for how to segment a metric monitor:

  • By field(s): up to two fields can be selected.
    • When one field is chosen, the monitor will be segmented by each distinct value present in that field.
    • When two are chosen, the monitor will be segmented by all combinations of the distinct values from each respective field. For example, if field1 has 25 distinct values and field2 has 6 distinct values, the monitor will track 150 segments (25 * 6 = 150).
  • By SQL Expression: write a SQL expression to segment the table. For example, CONCAT(TYPE, ' ', STATUS, ' ', TYPE).

Segmentation fields are selected in the **Choose data** section of a Metric monitor.

Segmentation fields are selected in the Choose data section of a metric monitor.


The maximum number of segments per monitor depends on how it is configured:

  • Up to 10,000 segments can be tracked if a single metric is selected and it is scheduled to run daily
  • Up to 1,000 segments can be tracked if multiple metrics are selected and it is scheduled to run more frequently than once per day

When adding a segmentation field, the user is required to click Test. This will check how many segments are present.

If an already configured monitor exceeds the maximum number of allowable segments, the monitor will fail to execute, and the appropriate audiences will be sent a notification about the failure.