Your observability bill (Datadog or similar) is now higher than your AWS compute bill. What do you do?

AdvancedScenarioCost
Answer

Situation read → It's almost always custom metric cardinality, log volume and trace volume, each growing with no owner.

What I'd do →

  1. Break the bill down by product (metrics, logs, APM, hosts) and find the top contributors in each.
  2. Metrics: remove high-cardinality tags (user ID, pod name on long-lived series, full URL path) and drop unused metrics. Aggregate at the collector.
  3. Logs: filter at the source (drop health checks and debug), and archive the rest to S3 instead of indexing everything.
  4. Traces: tail-based sampling with the OpenTelemetry Collector: keep all errors and slow traces, sample the rest at a few percent.
processors:
  tail_sampling:
    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: 5 }
  1. Govern: per-team budgets and a review before new custom metrics go live.

Why → Putting an OTel Collector in the middle gives you control over volume and makes you less locked in to one vendor.

Interview tip → Say "cardinality is cost"; one bad label can create millions of series.

All Real-World Interview questions Roadmap: Interview readiness

More on Cost