Guides · Costs

How to reduce observability costs

Your observability bill grows faster than the infrastructure it watches, and it is almost always data nobody looks at. This guide shows where the cost comes from and six ways to cut it without losing what you need the day something breaks.

By the OneGlass team · December 3, 2026 · 7 min read

Where the bill comes from

Before you cut anything, know what you are being charged for. There are four common pricing models, and many platforms combine several:

  • By volume: gigabytes ingested per day or per month. Logs are usually most of it.
  • By host or container: every monitored machine adds to the bill, whether it sends a lot or a little.
  • By metric series: every distinct combination of name and attributes is a series. This is where cardinality hits.
  • By user: every person with access adds to the bill, which ends up locking people out.

On top of that come retention (keeping 90 days costs more than 15) and extras billed separately: indexed traces, user sessions, synthetic checks. Read your bill with that list next to it. The lever that pays off most depends on which line is the biggest.

1. Measure who generates the volume

The same rule shows up in almost every environment: a few services generate most of the data. Group volume by service and by signal over one week. You will usually find one or two services logging at debug level, a health check logged thousands of times an hour, or a metric with a runaway attribute.

Don't cut anything before you have that ranking. Without it, you end up reducing detail everywhere equally, which is the most expensive way to save.

2. Filter noise before it leaves

What you drop in the Collector is not transmitted, not ingested and not stored. The usual candidates: health checks, debug logs in production, and metrics that no dashboard or alert uses.

yaml
processors:
  filter/noise:
    error_mode: ignore
    traces:
      span:                     # drops the spans that match the condition
        - 'attributes["url.path"] == "/healthz"'
        - 'attributes["url.path"] == "/readyz"'
    logs:
      log_record:               # debug and trace out; records with no declared level stay
        - 'severity_number != SEVERITY_NUMBER_UNSPECIFIED and severity_number < SEVERITY_NUMBER_INFO'

The detail in the last line matters. Many logs arrive with no declared level, and a condition that only says "lower than info" takes all of them.

3. Sample traces, but at the end

Keeping 100% of the traces of a healthy service means keeping millions of copies of the same thing. Tail sampling decides with the whole trace in view: it keeps every trace that failed or was slow, and a fraction of the rest.

yaml
processors:
  tail_sampling:
    decision_wait: 10s          # waits for the whole trace to arrive
    policies:
      - name: errors
        type: status_code
        status_code: { status_codes: [ERROR] }
      - name: slow
        type: latency
        latency: { threshold_ms: 1000 }
      - name: rest
        type: probabilistic
        probabilistic: { sampling_percentage: 10 }

One caution: if you compute request and error rates from traces, do it before sampling. Otherwise your metrics describe the sample, not the real traffic.

4. Control metric cardinality

A metric costs by the number of distinct combinations of its attributes. A request counter with method and response code is a few dozen series. The same counter with a user ID or a full URL is millions.

  • Unique identifiers (user, session, order) go in traces and logs, not in metric attributes.
  • Use the route template (/customers/{id}), not the real URL.
  • If a library already publishes an extra attribute, remove it in the Collector before sending.

5. Match retention to each type of data

Not everything needs to live for the same time. Application logs are rarely queried after two weeks. Audit and security logs may have to be kept for a year because of a regulation. Aggregated metrics are useful for year-over-year comparisons and take little space.

Split the data by purpose and give each group its own retention. After filtering, this is usually the biggest saving, and it removes nothing you use every day.

6. Turn repetitive logs into metrics

A log that says the same thing ten thousand times a minute is really a counter. If you only care how many times it happened, generate the metric in the Collector and drop the lines, or keep a sample. You go from gigabytes a day to a few series.

What not to cut

  • Traces with errors. These are the ones you will look for during an incident.
  • Security and audit logs. The cost of not having them shows up on the worst day.
  • Resource attributes (service.name, environment, version). They weigh little, and without them nothing else can be related.
  • People's access. If per-user pricing locks half the team out, the platform is worth less than it costs.

Why do it in the Collector

Every rule in this guide is applied in the OpenTelemetry Collector, before the data reaches any platform. That has two consequences. The saving is immediate, because what you drop is never billed. And the rules are yours: if you switch platforms tomorrow, they go with you.

With OneGlass

OneGlass is an OpenTelemetry-native observability platform, made in Argentina. It has a fixed monthly price based on how much data you send and how long you keep it, in US dollars and payable in Argentine pesos with a local invoice. With OneGlass Pipelines you apply the filtering and routing rules for all your Collectors from one place.