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 →
- Break the bill down by product (metrics, logs, APM, hosts) and find the top contributors in each.
- Metrics: remove high-cardinality tags (user ID, pod name on long-lived series, full URL path) and drop unused metrics. Aggregate at the collector.
- Logs: filter at the source (drop health checks and debug), and archive the rest to S3 instead of indexing everything.
- 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 }
- 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.
More on Cost
The AWS bill jumped 40% this month and finance wants an explanation by tomorrow. How do you find out why?BeginnerThe "NAT Gateway – data processed" line is $9,000 a month. How do you bring it down?IntermediateCut EKS compute cost by 40% without hurting reliability. What's your plan?AdvancedDev and test environments run 24/7 but are used only during office hours. How do you cut that cost?BeginnerCloudWatch Logs costs more than the EC2 fleet. What do you do?IntermediateFinance asks you to buy commitments. Savings Plans or Reserved Instances, and how much?Intermediate