Interview Prep/Monitoring & Observability/Observability Fundamentals & Signals

What are the four Prometheus metric types?

BeginnerConceptObservability Fundamentals & Signals
Answer
  • Counter: only goes up (or resets to zero on restart). Requests served, errors, bytes sent.
  • Gauge: goes up and down. Memory in use, queue depth, temperature.
  • Histogram: counts observations into configurable buckets plus _sum and _count. Latency, response size.
  • Summary: client-side calculated quantiles plus _sum and _count.

Note that on the wire Prometheus is mostly untyped; types are conventions and metadata, which is why naming (_total, _bucket) matters.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Observability Fundamentals & Signals