Interview Prep/Monitoring & Observability/Prometheus and PromQL at Scale

Which metrics would you instrument in a new backend service?

BeginnerScenarioPrometheus and PromQL at Scale
Answer

Situation read → Use RED for request-driven services and USE for resources.

What I'd do →

  1. Rate: http_requests_total{method,route,status} counter.
  2. Errors: derive from the status label, plus business errors such as payment_failures_total{reason}.
  3. Duration: http_request_duration_seconds histogram, using route templates.
  4. Saturation: in-flight requests gauge, worker pool queue length, DB pool usage.
  5. Dependencies: client-side metrics for each downstream call (latency, errors).
  6. Runtime metrics (GC, goroutines or threads, memory) come free from the client library.

Why → Client-side dependency metrics tell you whether the problem is yours or downstream.

Interview tip → Mention that you instrument on the boundary: incoming requests and outgoing calls.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus and PromQL at Scale