Configure cardinality control in an OTel Collector metrics pipeline using the metricstransform processor and the transform processor to aggregate away high-cardinality dimensions

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify high-cardinality label keys using the Prometheus TSDB cardinality API or the Collector's own internal metrics
  2. Add a transform processor with OTTL datapoint context statements to delete specific high-cardinality keys using delete_key()
  3. For aggregation rather than deletion, use the metricstransform processor to collapse a dimension by combining values with a sum or max aggregation
  4. Chain transform and metricstransform processors before the batch processor in the affected metrics pipeline
  5. Validate cardinality reduction by comparing time series count in the downstream TSDB before and after the pipeline change

Known gotchas

Related routes

Configure Grafana Adaptive Metrics aggregation rules in Grafana Cloud to reduce time series cardinality without losing query fidelity
grafana.com/docs/grafana-cloud · 6 steps · unrated
Apply OTTL expressions in the OTel Collector transform processor to rename metric data points and remove unwanted attributes
opentelemetry.io · 5 steps · unrated
Convert cumulative OTel Collector metrics to delta temporality with the cumulativetodelta processor
github.com · 6 steps · unrated

Give your agent this knowledge — and 15,800+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans