Cost, Cardinality and the Vendor Landscape
Where the money goes
Every signal has a different pricing driver: the unit the bill is counted in. Know the unit and you know what to cut.
| Signal | Typical billing unit | What actually multiplies it | Self-hosted cost shows up as |
|---|---|---|---|
| Metrics | Active series, or "custom metrics" (a unique metric name + tag-value set) | Product of label cardinalities; histogram buckets; pod churn | RAM in TSDB heads/ingesters (see Prometheus), ruler and query CPU |
| Logs | GB ingested; sometimes also GB or events indexed and retention days | Verbosity (debug), request volume × line size, retries/loops | Elasticsearch: disks + CPU for indexing; Loki: object storage + query scan |
| Traces | Spans or GB ingested; sometimes sampled/retained spans | Spans per request × request rate; sampling rate (see the Distributed Tracing guide) | Collector/gateway CPU, object storage |
| Infrastructure / APM | Per host, container or vCPU, often a monthly high-water or average count | Autoscaling, short-lived hosts, number of agents | Agent CPU/RAM on every node |
| Everything | Seats / users, add-ons (RUM, synthetics, profiling) | Org size, product breadth | On-call and platform-team time |
Back-of-envelope: metrics
Cardinality estimates are multiplications, so do them before shipping a metric. Illustrative fleet: 200 services × 10 pods = 2,000 pods.
per pod
runtime + process metrics (Go/JVM, process_*) ~ 100 series
HTTP server duration histogram:
series per label combination = buckets (11 + Inf) + _sum + _count = 14
combinations actually seen = method(4) x route(~15) x status(~6), sparse ~100
14 x 100 ~ 1,400 series
per-pod total ~ 1,500 series
fleet: 2,000 pods x 1,500 = 3,000,000 active series
memory: 3,000,000 x ~3-4 KB per head series (measure yours) = ~ 9-12 GB of RAMNow one engineer adds a label user_id to a middleware counter present in every service. If each pod sees 1,000 distinct users per 2-hour head window, that is 2,000 pods × 1,000 = +2,000,000 series from one line of code (+67%), and the series are short-lived, so churn (new series per hour) stays high even after you remove it, until old blocks age out. The same arithmetic on a vendor bill is a custom-metrics count, not a CPU graph.
active series ≈ Π (distinct values of each label) × (histogram series per combination) × (targets exposing it)
Back-of-envelope: logs
5,000 requests/s x 300 bytes/line (one access-log line per request)
= 1,500,000 B/s = 1.5 MB/s
x 86,400 s/day = 129.6 GB/day (call it 130 GB/day)
x 30 days = 3,888 GB (about 3.9 TB per month, before replicas)
Illustrative price: at $0.50 per GB ingested (a made-up round number, not a quote)
raw 130 GB/day = ~ $1,950 per month; one chatty debug flag doubling it = ~ $3,900The line is one request log per request, with no application logs yet. Add a retry loop that logs each failure and the number is not linear in traffic any more: it is linear in failures × retries.
The cardinality-control levers
Think of them in order of where they act. The earlier the lever, the more it saves and the less you can ever recover.
- Drop at the source. Do not emit it: remove the label in code, lower log level, exclude health checks. Cheapest and irreversible.
- Drop at the collector. Prometheus
metric_relabel_configs, OTel Collectorfilter/transformprocessors or SDK Views, Alloy/Vector/Fluent Bit filters. Central control without redeploying apps. - Sample. Traces (head or tail, the Distributed Tracing guide); logs (keep all errors, 1-in-N of successes); keep a rate metric so you can still count what you dropped.
- Aggregate before storing. Recording rules (see PromQL) that pre-compute
sum without (pod, instance), then drop the raw series with a short retention; streaming aggregation in an ingest proxy (e.g. VictoriaMetricsvmagent) or a vendor control plane. - Convert log to metric. If you only ever count or time something ("checkout errors per minute"), emit a metric (or Loki ruler / OTel
countconnector) and drop the lines. A series costs bytes; a log per event costs bytes per event. - Tier retention. Raw high-res for days, downsampled for months (Thanos/Mimir compactor, see Scaling Prometheus), logs hot for a week then cold object storage, traces for a few days.
- Let a tool recommend cuts. Grafana Cloud's Adaptive Telemetry suite: Adaptive Metrics (finds unused labels/series and suggests aggregation rules; Grafana reports about a 35% average metrics-cost reduction, a vendor claim), Adaptive Logs (pattern-based sampling recommendations, with exemptions), Adaptive Traces (tail sampling, GA at ObservabilityCON 2025). Chronosphere and others offer similar control planes. These are Cloud features, not open-source components.
prometheus.yml: drop an exploding label and a debug metric at scrape time
scrape_configs:
- job_name: kubernetes-pods
metric_relabel_configs:
- action: labeldrop # remove the label; series that collide are then rejected, aggregate first
regex: user_id|request_id
- action: drop # drop a whole noisy metric family
source_labels: [__name__]
regex: 'myapp_debug_.*|go_gc_.*_bucket'otel-collector.yaml: filter + transform on the way through (gateway)
processors:
filter/drop_noise:
error_mode: ignore
logs:
log_record:
- 'severity_number < SEVERITY_NUMBER_INFO' # drop DEBUG/TRACE
- 'IsMatch(body, ".*GET /(healthz|readyz).*")'
transform/shrink:
metric_statements:
- context: datapoint
statements:
- delete_key(attributes, "user.id")
service:
pipelines:
logs: { receivers: [otlp], processors: [memory_limiter, filter/drop_noise, batch], exporters: [loki] }
metrics: { receivers: [otlp], processors: [memory_limiter, transform/shrink, batch], exporters: [prometheusremotewrite] }Build vs buy
Self-hosting means you pay in hardware, object storage and engineers; buying means you pay per unit of telemetry and trade operations for a bill that scales with your data. The honest comparison is total cost of ownership: a vendor's per-GB price against your cluster cost plus the salaries of the people who tune rings, compactors and Elasticsearch heap. Large, steady, well-understood volumes favour self-hosting; small teams, spiky volume, or need for breadth (RUM, synthetics, security, incident tooling) favour buying. Many orgs end up hybrid: OSS for high-volume infrastructure metrics and logs, a vendor for APM and on-call.
| Option | Model | Strengths | Pricing driver (check current page) | Lock-in |
|---|---|---|---|---|
| Self-hosted OSS (Prometheus, Grafana, Loki, Tempo) | You operate it | No licence fee, full control, open interfaces; Prometheus and Grafana are the industry defaults | Your infra + engineer time; cardinality still decides cost | Lowest: PromQL, LogQL, OTLP are open; AGPL on Grafana-Labs components |
| Grafana Cloud | Managed LGTM | Open engines operated for you; Adaptive Telemetry; IRM; free tier | Active series, GB logs/traces/profiles, plus users and some add-ons | Low for data and queries; Adaptive/IRM features are proprietary |
| Datadog | SaaS, agent-based | Very broad integrated platform (infra, APM, logs, RUM, security); strong integrations and UX | Per host/container for infra and APM; custom metrics by unique name + tag set (allotment per host: 100 on Pro, 200 on Enterprise per its docs); logs per GB ingested and per indexed events; spans | Medium to high: Datadog agent, proprietary monitors/dashboards/query language; OTel ingestion supported |
| New Relic | SaaS, one data platform | All telemetry in one queryable store (NRQL); simple model | GB of data ingested (free monthly allowance) plus per-user pricing by user tier | Medium: NRQL, dashboards; OTLP ingest supported |
| Honeycomb | SaaS, event-centric | Wide events and high-cardinality exploration (BubbleUp); OTel-native; the "unknown unknowns" tool (see What observability is) | Events per month (metrics counted as data points); unlimited seats per its pricing page | Low-medium: OTel-native ingestion; query UX is its own |
| Dynatrace | SaaS/managed, agent-based | OneAgent auto-instrumentation, automatic topology and root-cause AI (Davis), strong in large enterprises | Consumption subscription with per-capability rates (e.g. host-hours, ingest GB, retention) | Medium to high: OneAgent, Grail/DQL |
| Elastic Observability | Self-managed or Elastic Cloud | Search and analytics on logs in one engine, plus APM and security; AGPL option since 2024 | Provisioned capacity (hosted) or usage/ingest + retention (serverless) | Medium: Elastic query languages and mappings; OTLP supported |
| Splunk (Cisco) | Enterprise and SaaS | Log search and security heritage; Observability Cloud for metrics/APM/traces | Historically GB/day ingest; workload-based options; Observability Cloud per host or usage | Medium to high: SPL, indexes, apps |
| Chronosphere | SaaS, metrics-first | Cardinality "control plane": see and shape data before it is stored; Prometheus/OTel compatible | Data persisted after shaping rules (contract-based) | Low-medium: PromQL and OTel |
| SigNoz | OSS or Cloud on ClickHouse | OTel-native, logs+metrics+traces in one columnar store; self-host option | Cloud: GB ingested for logs/traces, metric samples | Low: OTel in, ClickHouse underneath |
OpenTelemetry as the anti-lock-in lever
The main cost of switching vendors is re-instrumenting every service. With OpenTelemetry (see OpenTelemetry) you instrument once against the vendor-neutral API/SDK and OTLP, and the backend becomes a Collector exporter setting. In practice: apps send OTLP to a gateway Collector (see OTel Collector) that you own; the gateway fans out, so you can run two backends in parallel during a migration and compare; the cost-control levers above (filter, transform, sample, batch) live in your gateway, not in a vendor's agent. What OTel does not remove: dashboards, alerts and queries are still written in the vendor's language, and some vendor features (auto-discovery agents, proprietary correlation) are not available through OTLP.
"Observability is 10 to 30 percent of infrastructure spend"
This number is folklore, not data. The most-cited source is Honeycomb's co-founder, who wrote in 2018 that teams with good observability spent "~20-30% of their infra bill" on it and says plainly it was based on "absolutely no data"; his 2025 update is "15-25%", again from what "lots of people pay", and he notes analysts suggest 10% is achievable for large enterprises while he is "still searching for the evidence". Gartner publishes dollar figures instead of ratios: its April 2025 report Get Your Observability Spend Under Control reports a median single-vendor spend above $800,000 a year and predicts that by 2028, 80% of enterprises without cost controls will overspend by more than 50% (as summarised by secondary sources). Use the range as a smell test for "is our bill absurd?", never as a budget.
The Invariants
- Guarantees: Cost scales with what is stored or indexed, so a lever that acts earlier in the pipeline cuts every downstream cost at once; instrumenting with OTel and routing through your own Collector keeps the choice of backend reversible; any label with unbounded values multiplies series count by its distinct values.
- Does not guarantee: That dropped data can be recovered (sampling and label-dropping are irreversible); that OTel removes all lock-in (queries, dashboards and alerts are still vendor-specific); that vendor pricing models stay as described here; that "10 to 30 percent of infra" is a real benchmark; that cheaper per-GB means cheaper overall once query, retention and people costs are counted.