You're designing observability for an event-driven system (Kafka consumers, no HTTP). What are the SLIs?
AdvancedScenarioObservability & Telemetry Decisions
Answer
Situation read → No requests means no request-based SLIs. Users care whether events are processed correctly and on time.
What I'd do →
- Freshness: age of the oldest unprocessed event, or end-to-end delay from produce timestamp to processed timestamp.
- Correctness: ratio of successfully processed events vs those sent to a dead-letter queue.
- Throughput/coverage: events processed vs events produced per window.
- Measure consumer lag in time, not only offsets (Burrow, kafka-lag-exporter, or
kafka_consumergroup_lagplus produce rate). - Propagate trace context in message headers so traces connect producer and consumer.
- SLO example: 99% of events processed within 60 s; 99.9% processed without DLQ.
Why → Freshness and correctness map to what downstream users experience.
Interview tip → "Lag in seconds, not messages" — offset lag is meaningless without throughput context.
More on Observability & Telemetry Decisions
Your team has metrics and logs but no tracing. A request to checkout fans out to 9 services and nobody can tell where the 2 seconds go. How do you introduce tracing?IntermediateThe monthly observability bill doubled in two months and finance wants it cut by 40%. What do you do?IntermediateA developer adds `customer_id` as a label to a request counter "for better debugging". You catch it in code review. What do you say?BeginnerYou need to pick a trace sampling strategy for a service doing 20,000 requests per second.AdvancedEvery team has built their own Grafana dashboards with different panels. During incidents, nobody can find anything.BeginnerA service's logs are unstructured strings like `Order 123 failed for user 9 after 3 retries`. Searching them during incidents is painful.Beginner