AI & Machine Learning Cloud Computing

Reduce Metric Cardinality Without Breaking Splunk Alerts

Splunk Observability Cloud added Metrics rule recommendations to Usage Analytics on October 22, 2026. The feature identifies opportunities to reduce metric cardinality and opens Metrics Pipeline Management with proposed settings. Treat those recommendations as the start of an alerting migration. Seven days without recorded dimension usage does not establish that removing the dimension preserves detection or diagnosis.

The safe sequence is to create a lower-cardinality metric, keep the raw stream live, validate replacement detectors, and then change storage routing. The projected MTS reduction helps prioritize work. It cannot establish alert equivalence, subscription savings, or whether an infrequently used breakdown will be needed during an incident.

Understand the metric cardinality reduction estimate

An MTS is distinguished by its metric name and dimensions. A request metric split by service, region, route, status class, and container can produce many series. Grouping those series in a chart changes the query result; the raw series remain stored. Reducing stored cardinality requires a change to the metric pipeline or its inputs.

Splunk’s October 22 release adds a Potential MTS reduction indicator for metrics and dimensions. The metric-level estimate uses MTS counts from the last hour, applies only to the Custom billing class, and excludes metrics already archived or aggregated. The rule-creation workflow preselects dimensions with no usage during the previous seven days.

Those windows answer narrow questions. The last hour may miss a deployment surge or periodic workload. Seven days may miss a monthly operational check or an incident-only investigation. A dimension can have no recent references and still distinguish the failing resource from healthy resources.

Usage Analytics also has accounting boundaries. Splunk documents hourly refreshes, a different resolution from subscription accounting, and ingestion figures without application throttling. Establish actual subscription usage separately. APM Monitoring MetricSets, RUM Monitoring MetricSets, and tracing metrics fall outside Usage Analytics coverage, so this view cannot serve as a complete telemetry inventory.

Keep the seven-day recommendation separate from automated archival. Splunk documents a default unused-metric archival threshold of 60 days, configurable to 30, 45, or 60 days, plus a separate new-metric grace period. Neither policy checks whether an absent input would disable an operational dependency.

Configure metric cardinality reduction on a custom counter

Start with an understood custom metric. Consider the illustrative request counter epn.demo.requests. Each incoming value represents the number of requests during its reporting interval. It is an interval counter, not a cumulative total. This gives aggregation a clear additive meaning.

Splunk documents Sum as the default rollup for counters, Average for gauges, and Delta for cumulative counters. Preserve that distinction when reviewing the source metric. Summing arbitrary gauge values or precomputed latency percentiles would require different semantic justification.

  • Source metric: epn.demo.requests.
  • Metric type: counter, with interval request counts.
  • Incoming dimensions: service, region, route, status_class, and container_id.
  • Derived metric dimensions: retain service, region, route, and status_class.
  • Remove container_id only from the derived metric. Preserve the raw stream during validation.

In Metrics > Usage analytics, open the candidate’s profile. Inspect its detector and chart references. Record those dependencies and the original routing before selecting Create rules. Review the proposed dimensions rather than accepting the preselection. Creating aggregation rules requires an Admin or Power user role.

Metrics Pipeline Management creates a separate aggregated metric with the selected dimensions retained. Use the derived metric reference produced by the interface when updating consumers. The raw series can follow a different storage route, which makes parallel validation possible. Splunk documents MPM in Enterprise Edition.

Aggregation accepts dimensions. Custom properties and tags cannot be used as aggregation dimensions, and histogram metrics are unsupported. The guide also says new aggregation rules apply to new MTS only. Do not assume that creating a rule reaggregates historical data or immediately supplies every expected derived series. Confirm the derived inputs exist before testing replacements.

Account for ingestion-time aggregation

Splunk documents 10-second MPM aggregation rollups. Aggregation uses ingestion time rather than the original point timestamp. That changes the time model seen by a detector, even when the request counts are conserved.

In Splunk’s documented example, points timestamped 10:00 appear from 10:10 when ingestion begins ten minutes late. A delayed burst can therefore acquire a different apparent start and duration. Matching totals over a long window will not expose every change to a short-window detector.

Define acceptable timing differences before testing. Include alert firing, clearance, evaluation windows, and no-data behavior. A detector whose correctness depends on precise event-time alignment may need the raw metric. Splunk also advises against MTS aggregation when one-second resolution must be preserved.

This is a real cost of pipeline aggregation: storage reduction can change the evidence used for detection. Where timing requirements cannot tolerate that change, keep the raw input live and use query-time grouping despite its storage cost.

Hands compare ceramic blocks on parallel metal rails with an unmarked straightedge.

Validate both metric paths under controlled conditions before migrating detectors.

Validate replacement detectors before changing routing

Duplicate the relevant detectors and point the copies at the derived metric. Keep the originals running against raw data. Check every grouping, filter, and formula for references to the removed dimension. A detector grouped by container_id needs a redesigned detection scope before it can operate on this aggregate.

For the request counter, compare raw sums across containers with derived counts over matching windows and retained dimension combinations. If an error-fraction detector uses status_class, validate both its error numerator and total denominator. A matching ratio alone can conceal missing traffic in both.

Use controlled traffic for these proposed acceptance tests. No results for the October 22 release are reported here.

  • Load burst: compare counts, threshold crossings, firing time, and clearance.
  • Elevated error fraction: confirm that retained service, region, route, and status-class breakdowns support the intended alert scope.
  • Missing reports: compare no-data behavior and whether healthy contributors conceal a missing source.
  • Container replacement: check continuity as old container series stop and new ones appear.
  • Delayed delivery: measure changes caused by ingestion-time placement, including alert duration.

Missing reports deserve particular attention. Once several containers contribute to one derived series, continued reporting from healthy containers can keep that series present. If detecting an individual container’s silence is required, preserve a separate live detection input for that purpose.

Record the evaluation-window duration, source reporting interval, observed raw and derived MTS, subscription usage, and every detector discrepancy. Select a validation period that includes the workload cycles you need to protect. A seven-day recommendation window does not determine the required acceptance period.

Splunk’s migration guidance supports retaining raw data initially, inventorying dependent charts and detectors, and replacing their metric references before discarding the original stream. The available sources establish mechanisms and failure modes; they provide no controlled benchmark demonstrating achieved savings or alert parity for this release.

When metric cardinality reduction increases risk

The strongest argument against a blanket reduction policy comes from subscription classification. Splunk warns that removing billing-related dimensions under host-based subscriptions can reclassify series as Custom. Counted usage can increase or throttling can occur even as the number of distinct series falls. Measure subscription effects independently of the MTS estimate.

Infrastructure dimensions can also carry integration semantics. Removing AWSUniqueId can break synchronization with cloud resource properties. Built-in charts and AutoDetect detectors can become empty when their inputs disappear. An apparently unused dimension is therefore a poor starting point unless its billing and integration roles are understood.

Latency requires a separate design. Prometheus documents why averaging precomputed percentiles does not produce valid service-level quantiles. Compatible histogram data must be combined before calculating the quantile. That guidance does not override MPM’s histogram restriction, and the additive request-counter example should not be extended to latency distributions.

Moving reduction upstream also requires semantic validation. OpenTelemetry’s data model requires one logical writer per metric stream. Simply deleting distinguishing attributes in an SDK or Collector can create overlapping streams rather than a valid aggregate. Any upstream alternative must correctly combine values and preserve stream identity and temporality.

Even the expected cardinality benefit needs measurement. Multiplying dimension counts gives an upper-bound model unless all combinations actually occur. Removing a dimension with many possible values may produce less reduction than expected if the observed combinations are sparse or correlated.

Archive raw series only after cutover checks pass

After detector validation, update dependent chart and detector references to the derived metric. Verify their outputs before changing the raw stream’s route. Keep any raw inputs still required for per-container detection, precise timing, or finer resolution in the real-time tier.

Prefer archival over irreversible dropping during the initial migration. Splunk documents archived metrics at one-tenth the cost of real-time metrics, but archived data is not directly available to charts and detectors. Historical archived data can be restored to the real-time tier for up to 31 days.

Archive-first rollback therefore has a visibility gap: raw diagnostics require restoration before use. Record the original routing and dependent object references, define how archived data will be restored, and identify the detection inputs that must remain live. Reinstating routing cannot recover points that were dropped.

Blue cable coils stored in an open cream-lined archive drawer beside a separate coil on a worktable.

Archive for recovery, but keep required detection inputs live.

Before archiving each raw metric, check that no required detector still references it, every accepted replacement has passed timing and no-data tests, and subscription usage has been measured separately from projected MTS reduction. If any check fails, keep that input live.