A team wants to use logs to compute their SLO because they don't have metrics. Is that OK?
IntermediateScenarioObservability & Telemetry Decisions
Answer
Situation read → Logs can be a valid SLI source, but they are usually slower, costlier, and lossy under pressure. It's a stepping stone, not the goal.
What I'd do →
- Accept it short term if access logs are complete (load balancer or ingress logs are good sources).
- Derive metrics from logs instead of querying raw logs each time: Loki recording rules, CloudWatch metric filters, or an OTel
countconnector.sum(rate({app="billing"} | json | status >= 500 [5m])) / sum(rate({app="billing"} | json [5m])) - Validate the log-derived SLI against a known incident to confirm it moves when users suffer.
- Plan native metrics (Prometheus client or OTel metrics) as the long-term source.
Why → Log pipelines drop data under load — exactly when the SLI matters. Metrics are cheaper and more reliable for SLOs.
Interview tip → Point out that log sampling or drops would make the SLO look better during incidents.
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