tezvyn:

How would you measure P95 latency by geographic region?

Source: sre.googleintermediate

Tests your ability to design a practical metrics pipeline, considering instrumentation, data types (metrics vs. logs), and aggregation. Instrument the API with a histogram metric and a `region` label, then query using `histogram_quantile`.

This tests your ability to design a full metrics pipeline, from instrumentation to query. It assesses your understanding of metric types (histograms), metric vs. log trade-offs, and high-cardinality dangers. A great answer clarifies the region source (GeoIP), instruments the API to record latency as a histogram with a `region` label, and provides a pseudo-query using `histogram_quantile`. A common mistake is suggesting only logs, which are expensive, or proposing a metric with a user-ID label, which causes a cardinality explosion.

Read the original → sre.google

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

How would you measure P95 latency by geographic region? · Tezvyn