Interview Prep/Monitoring & Observability/Tracing, OpenTelemetry and CloudWatch

Collector `prometheusremotewrite` exporter logs `Permanent error: ... 400 Bad Request: out of order sample`

AdvancedTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer

Likely causes → Multiple collector replicas send the same series (e.g. same prometheus receiver scrape config on every replica), or batching reorders samples.

Diagnose → Check whether series labels identify the collector replica; count collector pods running the scrape.

Fix → Shard scraping with the Target Allocator (OTel Operator) or run scrape receivers as a single StatefulSet; add a unique collector resource attribute; enable out-of-order on the backend if needed.

Prevent → Treat scraping in collectors like Prometheus: one scraper per target.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing, OpenTelemetry and CloudWatch