Cardinality Management: keep metric volume under control

See which metrics and labels create the most time series, then limit them by hand with pipeline rules that aggregate or drop data before it is stored.

Metric explorer with data points, cardinality and a tree map of the largest metrics
Signal Control pipeline: rules that filter and summarise data before it is stored
Query builder to check which labels your charts and alerts use
Per metric
Data points, cardinality, resources
Tree map
Largest metrics by points, cardinality or resources
Limiting
By hand with pipeline rules, at ingest
Rule actions
Aggregate or drop before storage
Product tour

How your team works with Cardinality Management

From the metric explorer to the pipeline rule and the query: these views come straight from the Obseria app. Pick an area or let the tour run on its own.
01 / 05

Cardinality per metric and namespace

Every metric with type, unit, data points, cardinality and resources, totals per namespace and a tree map of the largest metrics.

  • Tree map by cardinality
  • Grouped or flat list
  • Filter by name or description
Cardinality per metric and namespace
02 / 05

Aggregate or drop before storage

Rules in the Signal Control pipeline summarise or filter metrics at ingest. What is dropped is neither stored nor computed.

  • Ingest and reduction per signal
  • Summarise and filter stages
  • Impact per rule
Learn more
Aggregate or drop before storage
03 / 05

See what your charts depend on

Before you aggregate a label away, check in the query builder how metrics are grouped and filtered in charts and check rules.

  • Group by any label
  • Add to a dashboard
  • Create a check rule
Learn more
See what your charts depend on
04 / 05

Remove labels in the Collector

The OpenTelemetry Collector can drop or rename attributes before data leaves your network. The config builder helps you assemble the processors.

  • Receivers, processors, exporters
  • Validation in the browser
  • Copy or download the YAML
Remove labels in the Collector
05 / 05

Leaner metrics, faster dashboards

Dashboards built on aggregated metrics load faster and are easier to read than charts with thousands of series.

  • Live panels
  • Templates to import
  • Share with the team
Learn more
Leaner metrics, faster dashboards
Capabilities

What cardinality management in Obseria includes

A metric explorer that shows cardinality per metric, pipeline rules to reduce it and the query and dashboard tools that benefit from it.
Metric cardinality management

Metric cardinality management

Shows which metrics and labels create the most time series; you limit them by hand with pipeline rules (aggregate or drop).

Observability pipelines

Observability pipelines

Processes telemetry before it is stored: filter, enrich, route and reduce.

Learn more →
Query language

Query language

One query language across logs, metrics, traces and events at the same time.

Learn more →
Metrics

Metrics

Collects time series from applications and infrastructure and makes them queryable and comparable.

Learn more →
How it works

From a cost spike to a lean metric

Five steps from finding the series driver to checking the effect of a rule.
  1. http.server.duration48.2k
    process.cpu.time3.6k
    red.calls3.4k
    Series per metric
    01

    Spot the large metrics

    The tree map in the metric explorer shows the largest metrics by data points or cardinality, grouped by namespace.

  2. user_id: 41k values
    02

    Find the label

    Cardinality per metric and namespace shows which metric and which labels create the most time series, for example a user_id.

    • user_id moves to traces
    • Metric keeps route and status
    • Owner team informed
    03

    Decide what you need

    Keep per-request detail in traces and logs. Decide whether the metric needs the label at all or only an aggregate.

  3. Rule
    Summarise http.server.durationAggregate over user_id at ingest
    Active
    04

    Create a rule

    In the Signal Control pipeline, aggregate the metric in the summarise stage or drop it in the filter stage, before it is stored.

  4. Cardinality back to 1.2k
    05

    Check the effect

    The impact per rule and the metric explorer show how much was removed and whether queries and dashboards still get what they need.

In depth

How Cardinality management works

Metric explorer

Cardinality per metric, at a glance

The metric explorer lists every metric grouped by namespace, with type, unit, data points, cardinality, number of resources, last value and when it was last seen. Group rows add the values up per namespace.

A tree map shows the largest metrics. Switch it between data points, cardinality and resources to see which metrics produce the most volume and which create the most series. A filter searches metrics by name or description, and you can switch between a grouped and a flat list.

The header shows the total number of metrics and data points for the selected period, a simple number to watch over time.

  • Cardinality and data points per metric
  • Totals per namespace
  • Tree map by points, cardinality or resources
  • Grouped or flat list
Find the driver

The labels that drive the volume

High cardinality almost always comes from a few labels: identifiers such as user or session IDs, unnormalised paths or container names that change with every deployment.

Obseria shows which metrics and labels create the most time series, so you can talk about a concrete label with the team that owns it instead of about a total bill.

Often the best fix is at the source: move the identifier into traces or logs, use route templates and keep label values bounded. Where that is not possible quickly, a pipeline rule helps.

  • Metrics and labels with the most series
  • A concrete starting point for the owner
  • Identifiers belong in traces and logs
  • Fix at the source where possible
Pipeline rules

Aggregate or drop before it is stored

Rules in the Signal Control pipeline run at ingest, before data is stored. For metrics, a filter stage drops data you do not need and a summarise stage aggregates data points. What is dropped is neither stored nor computed.

The pipeline overview shows the ingest volume per signal, how much the rules removed and how many rules are active. Rules can be created in the interface or imported as JSON.

Limiting is deliberate and manual: Obseria does not remove labels or metrics on its own, so nothing disappears that a dashboard or alert still relies on.

  • Rules at ingest, before storage
  • Summarise stage for aggregation
  • Filter stage to drop data
  • Rules created by hand or imported as JSON
Effect

See what each rule changes

After a rule is active, the pipeline lists its impact: which data it hits and how much it removes. The key figures show the total reduction as a share of ingest.

The metric explorer shows the result from the other side: fewer data points and a lower cardinality for the metric you changed. Queries and dashboards built on aggregated data become faster and easier to read.

Before you drop or aggregate, check the query builder and your dashboards for uses of the label, so that an alert or chart does not suddenly lose its data.

  • Impact per rule
  • Reduction as a share of ingest
  • Lower cardinality in the explorer
  • Faster queries and dashboards
Integrations

Works with the metrics you already send

Metrics from OpenTelemetry SDKs, the OpenTelemetry Collector and Prometheus scraping arrive in the same explorer and pass through the same pipeline rules.
  • OpenTelemetry Collector
  • OTLP
  • Prometheus
  • Kubernetes
  • Linux
  • Java
  • Python
  • Node.js
  • Go
  • .NET
Guide

Metric cardinality explained

What metric cardinality is

Metric cardinality is the number of unique time series a metric produces. Every combination of metric name and label values is its own series. A metric http.server.duration with the labels method (5 values), route (40 values) and status_code (10 values) can create up to 2,000 series. That is manageable. Add a label such as user_id or request_id and the number of series grows with every user or every request.

This is called high cardinality, and it is one of the most common reasons why metric storage gets expensive, queries get slow and dashboards time out. The tricky part is that it often comes from a single, harmless-looking change: a developer adds a useful label, and a week later the number of series has multiplied.

Why cardinality matters

  • Cost: storage and processing grow with the number of series, not with the number of metrics.
  • Query speed: a query over millions of series takes longer than one over thousands, and dashboards built on it become sluggish.
  • Clarity: a chart with thousands of lines does not answer a question. Aggregated data often tells the story better.
  • Stability: sudden cardinality explosions can overload collectors and backends at the worst possible time.

Typical causes of high cardinality

  • Identifiers as labels: user IDs, session IDs, order numbers, trace IDs or e-mail addresses.
  • Unnormalised paths: /orders/48213 instead of the route template /orders/{id}.
  • Container and pod names that change with every deployment and leave old series behind.
  • Free-text values such as error messages or user agents.
  • Histograms with many buckets, multiplied by every other label.

Best practices for cardinality management

  1. Measure first. Find the metrics with the most series and the labels that drive them before you change anything.
  2. Put identifiers into traces and logs, not metrics. Traces and logs are made for per-request detail; metrics are made for aggregates.
  3. Normalise values at the source. Use route templates, status classes and bounded enumerations.
  4. Aggregate or drop what you do not need. Remove a label by aggregating over it, or drop a metric that nobody uses, before it is stored.
  5. Review regularly. Cardinality creeps in with new releases. A short monthly look at the largest metrics prevents surprises.

How cardinality management works in Obseria

Obseria makes cardinality visible and gives you the tools to limit it by hand. The metric explorer lists every metric grouped by namespace with type, unit, data points, cardinality, number of resources, last value and when it was last seen. Group rows add up the values per namespace, so you see at once which area produces the most series. A tree map shows the largest metrics and can be switched between data points, cardinality and resources. A filter searches metrics by name or description, and the time range can be set to periods such as the last 30 days.

Obseria shows which metrics and labels create the most time series. The decision about what to do with them stays with you: Obseria does not remove labels or metrics on its own.

Limiting cardinality with pipeline rules

To reduce cardinality, you create rules in Obseria's Signal Control pipeline. Rules run at ingest, before data is stored, and for metrics there are two relevant stages: a filter stage that drops data you do not need, and a summarise stage that aggregates data points. What is dropped is neither stored nor computed.

The pipeline overview shows the ingest volume per signal, how much the rules removed and how many rules are active. A list of the impact per rule shows what each one does, so you can check that a rule hits what you intended. Rules can be created in the interface or imported as JSON.

Many teams also act at the source: the OpenTelemetry Collector can remove or rename attributes before data leaves your network, and SDK views can restrict the labels a metric carries. Obseria's metric explorer shows whether those changes had the intended effect.

Estimating cardinality before it hurts

A quick estimate helps before a new label goes live: multiply the number of possible values of every label on the metric, then multiply by the number of sources that report it, such as hosts or pods. A label with ten values on a metric reported by 50 pods adds 500 series; a label with one value per customer adds one series per customer and pod. If the result grows with users, requests or time, the label does not belong on a metric.

Also watch for churn: series that are created, report for a while and then stop, for example because a pod name changed. They count towards cardinality in the period, even if only a fraction of them is active at any moment. In the metric explorer, comparing cardinality over a longer time range with a short one shows whether churn is a factor.

What to look for

  • Cardinality per metric, not just the total number of series.
  • Visibility of the labels that drive the volume.
  • Rules that aggregate or drop data before it is stored.
  • Feedback on the effect of each rule.
  • Open standards, so you can also fix the source with OpenTelemetry.
FAQ

Questions about Cardinality management

Answers on features, setup and what is not included yet.
Contact us

Cardinality management FAQ

The number of unique time series a metric creates. Each combination of metric name and label values is one series, so labels with many values, such as a user ID, multiply the number of series.

The metric explorer lists every metric with data points, cardinality and resources, adds them up per namespace and shows a tree map of the largest metrics by data points, cardinality or resources. Obseria shows which metrics and labels create the most time series.

With rules in the Signal Control pipeline. A filter stage drops data and a summarise stage aggregates data points, both at ingest and before storage. You create the rules yourself.

No. Obseria makes cardinality visible, but limiting it is a manual decision with pipeline rules. That way nothing disappears that a dashboard or alert still needs.

Data dropped by a pipeline rule is neither stored nor computed.

Yes, and that is often the best solution. Move identifiers into traces or logs, use route templates, or remove attributes with the OpenTelemetry Collector or SDK views. The metric explorer shows whether the change had the intended effect.

All metrics that arrive in Obseria, whether from OpenTelemetry SDKs, the OpenTelemetry Collector, the Obseria host agent or Prometheus scraping through the Collector.

Obseria does not set cardinality limits or quotas per metric and does not create rules automatically when cardinality rises. Limiting is done by hand with pipeline rules that aggregate or drop data. Cardinality alerts are not a dedicated feature.

Contact

See Cardinality Management in action

In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.

  • No obligation, free of charge
  • Usually answered within one business day
  • Data in the EU
Your contact
Your contactObseria team

* Required field. By submitting, you agree to the processing of your details as described in our Privacy Notice