Feedback

Chat Icon

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Instrumentation with Prometheus in Practice
69%

The Four Core Metric Types in Prometheus

As we have seen, Prometheus supports four core metric types: counters, gauges, histograms, and summaries. Each metric type has its own use cases and characteristics. The following table summarizes the key differences between them:

Metric TypeDescriptionUse CasesCharacteristics
CounterA cumulative metric that represents a single monotonically increasing value that can only increase or be reset to zero.Counting the number of requests, errors, or other events over time.Only increases (or resets to zero). Ideal for cumulative metrics like total requests or bytes processed.
GaugeA metric that represents a single numerical value that can go up or down over time.

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Enroll now to unlock all content and receive all future updates for free.