Trace an incident from symptom to telemetry
Request latency rose at 09:14 after a deployment. The CPU chart looks normal. Which evidence would distinguish a database wait from a slow downstream service?
Trace an incident from symptom to telemetry
Use Gemini Cloud Assist to draft a PromQL alert or explain a chart and correlate changes during an incident.
Work through the decision
Request latency rose at 09:14 after a deployment. The CPU chart looks normal. Which evidence would distinguish a database wait from a slow downstream service?
Check your reasoning
Inspect distributed traces and compare slow spans across revisions. Correlate timestamps with logs and request rates before changing resources. Verify any assistant-generated query against known requests.
Interpret the evidence
- Cloud Trace
- Distributed traces split request time into spans across services, exposing which call dominates latency.
- Log Router sink
- Filters and routes matching log entries to a supported destination such as BigQuery.
- Personalized Service Health
- Shows provider-reported service events relevant to the project and location.
- Ops Agent
- Collects system and application telemetry from supported virtual machines.
- Managed Service for Prometheus
- Ingest and query Prometheus-compatible time series using PromQL.
Practice the guide skills
- Build an alert from a metric threshold, evaluation window and notification channel. Define labels and units for a custom application or logs-based metric.
- Trace one request through Logging filters, resource labels and the detailed entry. Compare Cloud Audit Logs, VPC Flow Logs and firewall rule logs by what each records.
- Choose a Log Router filter, destination and writer permissions. Compare a log bucket with Log Analytics, a BigQuery sink and a Pub/Sub export for an external consumer.
- Use Cloud Trace for spans, Cloud Profiler for sampled resource use, and Query Insights or an index advisor for database latency. Match each to a specific symptom.
- Verify Ops Agent guest telemetry and Managed Service for Prometheus ingestion. Test an assistant-drafted PromQL query against a known workload.
- Compare project-relevant incidents in Personalized Service Health with active events in Cloud Hub and optimization recommendations in Active Assist.
Official objectives for this lesson
Read a per-request trace
A checkout request takes 830 ms. Its child spans run consecutively in this simplified trace.
Validate token 20 ms
Read cart 42 ms
Payment call 710 ms
Write receipt 38 ms
The payment call accounts for about 86% of the request. Compare traces for slow and typical requests and correlate the payment span with dependency logs at the same timestamp.
Related lesson · Find the stage where work starts to accumulate
Trace an incident from symptom to telemetry quiz
Answer 3 questions. Check each answer for an explanation.