← All notes

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

Sources

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

Permanent ID: iil:note:qq1azve8

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.},
}

Markdown

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.