Skip to main content
InterviewHubPRO
Section Overview
Q15

Question 15 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

30%
SRE & Observability (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What are PromQL Fundamentals (Counters, Gauges, Histograms, Summaries)?

senior LevelSystem Design

In Simple Words:

  • Counter: Monotonically increasing value (resets to 0 on restart). Used with rate(): rate(http_requests_total[5m]) (calculates per-second request rate over 5 min).
  • Gauge: Value that can go up or down (e.g. CPU temperature, memory usage, concurrent connections).
  • Histogram: Samples observations into configurable buckets: histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket[5m])) by (le)) (calculates 99th percentile p99 latency!).