Prometheus defines four metric types: Counter, Gauge, Histogram, and Summary
Answer: Prometheus client libraries offer four metric types. A Counter only goes up (or resets to zero on restart). A Gauge can go up and down. A Histogram samples observations into buckets.
Picking a type
Use a Gauge for a current value, such as memory in use.
Claims
- id: C1 claim: Counter is one of the Prometheus metric types. source: S1 evidence: "Counter"
- id: C2 claim: Gauge, Histogram, and Summary are the other three types. source: S1 evidence: "Histogram"
- id: C3 claim: The published page documents Counter. source: S2 evidence: "Counter"
- id: C4 claim: The published page also documents Histogram. source: S2 evidence: "Histogram"
Sources
- [S1] Prometheus metric types. prometheus/docs (GitHub). https://github.com/prometheus/docs/blob/main/docs/concepts/metric_types.md . License: Apache-2.0. Accessed 2026-11-18.
- [S2] Prometheus metric types (website). Prometheus (prometheus.io). https://prometheus.io/docs/concepts/metric_types/ . License: Apache-2.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: prometheus/docs (GitHub), Prometheus metric types, Apache-2.0 (https://raw.githubusercontent.com/prometheus/docs/main/LICENSE); Prometheus (prometheus.io), Prometheus metric types (website), Apache-2.0 (https://raw.githubusercontent.com/prometheus/docs/main/LICENSE). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: prometheus/docs (GitHub), Prometheus metric types, Apache-2.0 (https://raw.githubusercontent.com/prometheus/docs/main/LICENSE); Prometheus (prometheus.io), Prometheus metric types (website), Apache-2.0 (https://raw.githubusercontent.com/prometheus/docs/main/LICENSE).
Cite this
iinventedlight. 2026. "Prometheus defines four metric types: Counter, Gauge, Histogram, and Summary." iinventedlight Library, iil:note:qq1azve8, version of 2026-11-18. https://iinventedlight.com/library/notes/prometheus-metric-types/. License: CC-BY-4.0.
@misc{iil_note_qq1azve8,
author = {{iinventedlight}},
title = {{Prometheus defines four metric types: Counter, Gauge, Histogram, and Summary}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/prometheus-metric-types/},
note = {Permanent ID iil:note:qq1azve8. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/prometheus-metric-types.md.