Observability spend has a habit of growing faster than the business. Every new service adds logs, every deploy adds a few metrics with new labels, and traces are kept at 100% because nobody decided otherwise. Then the invoice arrives.

Cutting blindly is risky: the data you delete may be exactly what you need in the next incident. This guide works through the main cost drivers in order of typical impact.

1. Find out where the money goes

Before changing anything, break down ingest by data type, service and day. Most teams find that a few sources dominate: one chatty service's debug logs, a metric with a user ID label, or health-check spans. In VitalRix, usage controls show a day-by-day table per data type, so the spike and its cause are easy to find.

2. Logs: the usual biggest line item

Logs are expensive because every event is stored and indexed. In order:

  • Drop health-check and probe access logs. They can be a large share of web server logs and are almost never read.
  • Turn off debug logs in production unless you are investigating.
  • Log errors once, where they are handled, not at every layer.
  • Sample repetitive informational lines, such as "request received", keeping all warnings and errors.
  • Keep detail short, archive long: 14 to 30 days searchable is enough for most debugging. See the log retention policy guide.

More in log optimization.

3. Metrics: watch cardinality

A metric's cost scales with the number of distinct label combinations. One label with user IDs or raw URLs can turn a metric into hundreds of thousands of series. Review new labels in code review and use route templates (/orders/:id) instead of raw paths. See metric cardinality.

4. Traces: sample deliberately

Keeping every trace is worthwhile at low traffic and wasteful at high traffic. Use a parent-based ratio sampler on your busiest services, and consider tail sampling in a Collector to keep every error and slow trace while dropping most fast successful ones. Exclude health checks from tracing entirely. See trace sampling.

5. Real-user monitoring and replays

Session replays are heavier than page-view metrics. Record a share of sessions and all sessions with errors, and cap replays per day so a traffic spike cannot surprise you.

6. Cap daily volume

Caps are a safety net, not a strategy: they stop a misbehaving deploy from logging gigabytes per hour. Set them a little above normal peak for each data type and alert at 80%. VitalRix lets you cap logs, spans, metric points, RUM sessions and replays per day, with warnings at 80% and 100%. Monitor checks are not capped, so you never lose sight during an outage.

7. Consolidate overlapping tools

Teams often pay several vendors to store the same events: logs in two places, uptime in two tools. Consolidating saves money and makes incidents faster to diagnose. See monitoring consolidation.

8. Move filtering into a pipeline

A telemetry pipeline, such as the OpenTelemetry Collector, is the best place to drop, sample and redact data centrally, so teams do not each implement their own filters.

What not to cut

  • Errors and warnings with context.
  • Logs that carry trace IDs, which make traces useful.
  • Audit logs required by policy.
  • Uptime and synthetic check history, which is cheap and powers SLA reports.
  • Traces of errors and slow requests.

A realistic target

Teams that work through this list commonly cut a large share of log and trace volume without anyone noticing in day-to-day debugging. Measure before and after, keep the changes in configuration, and review the top sources monthly so the savings stick.

A worked example

A SaaS team's monthly observability bill had doubled in six months. The breakdown showed logs at 62% of ingest, traces at 30% and metrics at 8%. Within logs, two sources stood out: the API gateway's access logs (every health check from three load balancers, every 5 seconds) and a payments service still at debug level after an investigation months earlier. Within traces, health-check spans were 18% of all spans.

The changes took a week: drop health-check access logs and spans in the Collector, set the payments service back to info, sample informational "request completed" lines at 10% while keeping all warnings and errors, and use a 25% parent-based trace sampler on the two busiest services. Ingest fell by more than half. In the following month's incidents, nobody missed any of the dropped data, because errors, warnings, slow traces and logs with trace IDs were all still there.

Questions to ask about each data source

  1. Did anyone use this in the last three incidents?
  2. Could a metric answer the same question more cheaply than logs?
  3. Does it contain personal data we should not keep anyway?
  4. Is the retention longer than anyone looks back?
  5. Is the same data stored in another tool too?

Governance that keeps costs down

  • Owners per data source, so someone decides when a service's volume jumps.
  • Monthly review of the top ten sources by volume.
  • Caps and alerts at 80% of daily caps per data type.
  • Defaults in the service template: info level, trace sampling configured, health checks excluded.

The goal is not the smallest bill; it is paying for data that helps you find and fix problems. Read log levels and best log management tools for related guidance.

What is the fastest way to cut observability costs?

Usually dropping health-check logs and debug logs in production, then sampling traces on the busiest services.

Will sampling hide problems?

Head sampling at a moderate rate keeps a representative picture. Tail sampling can keep all errors and slow traces. Never sample errors away entirely.

Should I shorten retention?

For detailed logs and traces, often yes. Keep metrics and check history longer; they are cheap and useful for trends.

Try VitalRix free

Uptime monitoring, APM, logs, real user monitoring and status pages in one place. No credit card needed.