Observability cost is unusual because it scales with traffic and with cardinality rather than with headcount. Logs grow linearly with requests, metrics grow with the number of label combinations, and traces grow with sampling rate and span count. None of these has a natural ceiling, and each has a vendor whose pricing rewards volume.
The short version: decide what each signal is for, then set retention and fidelity from that purpose. Full-fidelity everything forever is a budget line that doubles annually and nobody defends it.
Three signals, three purposes
Logs answer “what happened in this specific case”. They need high fidelity for a short window and low fidelity for a long one. Metrics answer “how is the system behaving in aggregate”. They need long retention but low cardinality. Traces answer “where did this request spend its time”. They need sampling and a short window, because a trace is expensive per request and rarely consulted after the incident closes.
Most overspend comes from applying one retention policy to all three. Keeping raw logs for a year at debug level costs more than every other observability line combined, and almost nothing is ever read from month six.
Cardinality is the metric cost driver
Metrics are priced by time series count, so a label with unbounded values is a budget bug. User id, request id, full URL, and error message as labels each multiply the series count by orders of magnitude. The rule is simple: labels must be low-cardinality and used for grouping; high-cardinality values belong in logs, referenced by an id.
Audit label cardinality quarterly. A single new label added by a well-meaning change can multiply storage cost, and nothing in the code review will flag it because it looks like a harmless dimension.
Sampling traced requests
Head-based sampling at a low rate gives you aggregate latency pictures. Tail-based sampling, keeping traces for slow or failed requests, gives you the traces you actually want during incidents at a fraction of the volume. The second approach needs the collector to buffer and decide, which is more work to set up and much cheaper to run.
Sample errors at full rate and successes at a low rate. Nobody investigates a successful request, and every incident starts with an error or a latency outlier.
Retention tiers that survive review
A workable structure: hot storage with full fidelity for seven days, warm storage with aggregated data for ninety days, and cold archive for a year containing only what compliance or trend analysis requires. Write the purpose of each tier down, because the tier that has no stated purpose is the one that gets cut.
Exclusions matter as much as retention. Health checks, readiness probes, static asset requests, and bot traffic can be the majority of log volume and carry almost no diagnostic value. Filtering them at the agent costs nothing and often halves the bill.
Instrumentation cost is code review
Each added span, log line, and metric is a permanent cost multiplied by traffic. Treat instrumentation changes like schema changes: reviewed for cardinality, for volume, and for whether the signal is actually queried. Dashboards that nobody opens are a good signal that the underlying metric can be downgraded or dropped.
Retire signals. A quarterly review that deletes unused dashboards, unused metrics, and debug logs left in production is the cheapest observability optimisation available, and it is the one nobody schedules.
A worked example of a bill cut in half
A service logs every request at info level with a user id, a full URL, and a request id. Cardinality explodes: the metrics backend holds roughly four million distinct series, most of which are touched once. Monthly ingestion is dominated by the user id label, and the log volume is dominated by health checks and static asset requests.
Three changes are made in one week. Health checks and asset requests are filtered at the agent, halving log volume. The user id and full URL move out of labels into log fields, dropping series count by more than ninety percent. Trace sampling becomes tail-based, keeping traces for errors and for requests slower than a threshold, at about two percent of the previous volume while retaining every trace anyone actually opens.
Total observability spend falls by more than half, and the on-call experience improves because error traces are now retained at full rate rather than sampled away. The changes required no new instrumentation, only a decision about what each signal is for.
What to check before you commit
- Assign a purpose to each signal type and set retention from that purpose.
- Audit metric label cardinality; keep high-cardinality values in logs.
- Sample successes low and errors at full rate.
- Filter health checks, static assets, and bot traffic at the agent.
- Review instrumentation changes for volume, like schema changes.
- Schedule a quarterly retirement of unused metrics and dashboards.
Observability is worth paying for; it is not worth paying for twice. The controls here are mostly policy and review, which is why they survive budget season better than any vendor negotiation.
One more control worth having is a budget alert on ingested volume per service, expressed in the units the vendor bills, not in requests. Teams respond to a number that maps to money far more reliably than to a percentage of an abstract quota, and the alert gives the owning team a chance to fix cardinality or filtering before the finance review does it for them. Set the threshold from the previous quarter’s actual spend plus a growth allowance, and review it whenever a new service launches.
Finally, keep the exclusion list in the codebase next to the instrumentation configuration. Filters maintained in a vendor console drift, are invisible in review, and disappear when the account is migrated; filters in version control survive all three.
Finally, tie retention to the incident review cycle. If the team’s postmortems never reference data older than thirty days, a ninety-day hot tier is paying for a habit nobody has, and the money is better spent on error-rate tracing that someone actually opens every week.