The Prometheus text-based exposition format and data model are built around four core metric types. These are:
1. Counter: A cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart. It is ideal for tracking request counts, tasks completed, or errors.
2. Gauge: A metric that represents a single numerical value that can arbitrarily go up and down. Gauges are typically used for measured values like temperatures, memory usage, or the number of concurrent requests.
3. Histogram: Samples observations (e.g., request durations or response sizes) and counts them in configurable buckets. It also provides a sum of all observed values.
4. Summary: Similar to a histogram, a summary samples observations but calculates configurable φ-quantiles over a sliding time window.