Eliminate the Datadog Custom Metrics & Log Ingestion Tax: Observability FinOps Calculator
[TCO] Engineering Unit Economics & Margin Comparison
Export Executive PDF Brief or Download 42-Point FinOps CSV Matrix
Print a clean PDF summary of this workload projection for engineering review, or download our open 42-point FinOps audit checklist directly.
FinOps Architecture Breakdown: Eliminate the Datadog Custom Metrics & Log Ingestion Tax: Observability FinOps Calculator
Commercial SaaS observability pricing scales punitively on three decoupled dimensions: infrastructure hosts, high-cardinality custom metrics ($5.00 per 100 time series), and split log ingestion plus indexing fees ($0.10/GB ingestion plus $1.70 per million indexed events). When microservices emit dynamic labels like user_id, container_id, or pod_uid, combinatorial cardinality spikes Datadog overages past raw EC2 compute spend. Replacing vendor agents with an OpenTelemetry Collector pipeline that normalizes labels and routes telemetry to Grafana Cloud Adaptive Metrics or a self-hosted ClickHouse cluster compresses total observability run-rates by 68% to 82%.
Metric cardinality explosion occurs because modern SaaS vendors charge per unique combination of metric name and tag key-value pairs over a rolling billing window. A single Histogram metric with 10 buckets across 150 Kubernetes pods, 4 availability zones, and 12 HTTP status codes generates 72,000 active time series. At $0.05 per custom metric above the tiny host allotment, one poorly instrumented RPC endpoint adds $3,600/month. Implementing an OpenTelemetry Collector gateway layer with the transform and filter processors allows engineering teams to drop ephemeral pod labels and pre-aggregate histograms before network egress.
Log billing traps stem from dual-stage charging: ingestion per gigabyte and retention per million indexed events. Verbose JSON payloads from Envoy proxies or Kubernetes audit logs often average 1.2 KB per line, meaning 1 TB of logs contains roughly 873 million events. In Datadog, indexing 1TB for 15-day retention costs $100 for ingestion plus $1,484 for indexing—nearly $1,584/TB. By migrating to ClickHouse using ZSTD(3) columnar compression and LowCardinality(String) data types, 1 TB of raw JSON compresses down to ~65 GB on NVMe and GP3 volumes, costing under $18/TB including compute.
Distributed tracing costs escalate when head-based sampling lets 100% of health check and low-latency spans pass through to SaaS APM ingestion at $1.70/GB. Transitioning to an OpenTelemetry tail-sampling architecture decouples span generation from storage billing. The OTel tail_sampling processor buffers complete traces in memory for 30 seconds, evaluating policy rules to retain 100% of traces containing HTTP 5xx errors or p99 latency above 800ms while down-sampling routine 200 OK transactions to 1%. This architectural shift preserves complete diagnostic fidelity during outages while cutting APM span volume by 92%.
B2B Fintech Kubernetes Fleet: 180 Nodes, 45 TB/Month Logs, 1.4M Active Series
Workload: 180 c6i.2xlarge EKS nodes, 1,400,000 active custom Prometheus metrics, 45 TB/month JSON application & Envoy access logs (36B events, 30% indexed), 12 TB/month APM traces.
Engineering Takeaway: Eliminating per-event log indexing and stripping ephemeral Kubernetes pod tags at the OTel Collector edge reduced monthly observability spend by $92,794 (91.4% savings) while increasing full-fidelity log retention from 15 days to 90 days.
2026 Comparative Cost & Performance Matrix
| Option / Workload Tier | Baseline Metric | Optimized Metric | Delta / Engineering Note |
|---|---|---|---|
| 1M Custom Metrics (Active Series) | $50,000 / mo (Datadog On-Demand @ $5/100) | $2,400 / mo (Grafana Cloud Adaptive Metrics) | -95.2% via series aggregation & unused series drop |
| 30 TB/mo Logs (15-Day Indexed Retention) | $43,200 / mo (Datadog Ingest + 24B Events Indexed) | $1,450 / mo (ClickHouse on AWS Graviton4 + GP3) | -96.6% via 14:1 ZSTD columnar compression |
| 10 TB/mo Distributed Traces (APM) | $17,000 / mo (SaaS 100% Ingest @ $1.70/GB) | $1,360 / mo (OTel Tail-Sampling @ 8% Retention) | -92.0% while retaining 100% of 5xx & p99 latency spans |
| Agent CPU & Memory Overhead per Node | 450m CPU / 1.1 GB RAM (Proprietary Multi-Agent) | 140m CPU / 320 MB RAM (Single OTel DaemonSet) | -68.8% compute overhead across Kubernetes fleet |
Implementation Playbook & Configuration
Audit High-Cardinality Metrics & Drop Ephemeral Labels
Query your current metrics backend to identify top metric names by active series count. Deploy an OpenTelemetry Collector gateway to strip high-churn labels like pod_uid, container_id, and request_id before remote write.
processors:
attributes/drop_ephemeral:
actions:
- key: k8s.pod.uid
action: delete
- key: container.id
action: delete
transform/metrics:
metric_statements:
- context: datapoint
statements:
- delete_key(attributes, "http.url")Deploy Tail-Based Sampling for APM Spans
Configure a stateful OTel Collector DaemonSet + Gateway tier using the loadbalancing exporter (routing by traceID) so all spans for a trace hit the same gateway replica for tail sampling.
processors:
tail_sampling:
decision_wait: 15s
num_traces: 150000
policies:
- name: errors-policy
type: status_code
status_code: {status_codes: [ERROR]}
- name: slow-traces
type: latency
latency: {threshold_ms: 750}
- name: baseline-sample
type: probabilistic
probabilistic: {sampling_percentage: 2.0}Migrate JSON Logs to ClickHouse with ZSTD Columnar Schema
Replace SaaS log indexing with a ClickHouse MergeTree table extracting frequent filter fields into LowCardinality columns and compressing the remaining attributes map with ZSTD(3).
CREATE TABLE otel_logs ( Timestamp DateTime64(9) CODEC(Delta(8), ZSTD(1)), ServiceName LowCardinality(String), SeverityText LowCardinality(String), Body String CODEC(ZSTD(3)), LogAttributes Map(LowCardinality(String), String) CODEC(ZSTD(3)) ) ENGINE = MergeTree() PARTITION BY toDate(Timestamp) ORDER BY (ServiceName, SeverityText, toUnixTimestamp(Timestamp));
Enforce Metric Aggregation Rules via Prometheus Recording Rules
Convert raw high-cardinality application histograms into pre-computed service-level recording rules every 30 seconds, dropping the raw bucket series prior to long-term Mimir or Grafana Cloud storage.
write_relabel_configs:
- source_labels: [__name__]
regex: 'http_request_duration_seconds_bucket'
action: dropProduction Pitfalls & Failure Modes to Avoid
- Cross-AZ Data Transfer Bleed on OTel GatewaysRouting 45 TB of logs and traces from application pods across Availability Zones to a centralized OTel Collector pool triggers AWS $0.02/GB cross-AZ transfer fees ($900+/mo). Always enable Kubernetes Topology Aware Hints (service.kubernetes.io/topology-mode: Auto) on the OTel gateway service and deploy zone-pinned ClickHouse shards.
- OOMKills in OTel Tail-Sampling CollectorsBuffering 30 seconds of spans for high-throughput microservices requires deterministic memory limits. Without the memory_limiter processor placed first in the pipeline, traffic spikes cause collector OOM loops and dropped error traces. Size collector memory at 2.5x steady-state trace buffer footprint.
- Datadog Annual Commit & High-Water-Mark Billing TrapsDatadog bills custom metrics and hosts based on the 99th percentile high-water mark or monthly average over your annual commit. Cutting telemetry volume by 80% mid-contract will not lower your invoice until renewal unless you negotiate burst-protection clauses or shift on-demand overages first.
Technical FAQ: Eliminate the Datadog Custom Metrics & Log Ingestion Tax: Observability FinOps Calculator
Why does migrating from Datadog Agent to OpenTelemetry immediately lower custom metric counts?
The Datadog Agent automatically enriches DogStatsD metrics with orchestrator tags (pod_name, container_id, image_tag), multiplying each unique metric by pod churn frequency. An OpenTelemetry Collector pipeline lets you apply transform processors before egress, aggregating metrics at the deployment or service level and discarding ephemeral pod identifiers before billing occurs.
How much hardware is actually required to ingest 50 TB/month of logs in ClickHouse?
At 50 TB/month (~19.2 MB/sec average, 80 MB/sec peak), a 3-node ClickHouse cluster using AWS r7g.xlarge instances (4 vCPU, 32 GB RAM) with 4 TB GP3 NVMe storage and S3 cold tiering easily handles ingestion at under 25% CPU utilization. With 12x ZSTD compression, 30 days of hot data consumes roughly 4.2 TB of disk across replicas.
Does Grafana Cloud Adaptive Metrics break existing dashboard PromQL queries?
No. Adaptive Metrics analyzes query execution logs from Grafana dashboards and alerting rules to identify which label dimensions are never grouped or filtered on. It automatically generates aggregation rules that strip unused labels while preserving the exact series required by active dashboards.
How do we handle APM trace correlation when logs live in ClickHouse and metrics live in Prometheus?
Inject W3C TraceContext (trace_id and span_id) into structured JSON application logs using OpenTelemetry auto-instrumentation SDKs. In Grafana, configure a Data Link on the trace_id field in your ClickHouse datasource that links directly to the Tempo or ClickHouse trace waterfall view with zero proprietary indexing cost.