Prometheus Exposition Format / OpenMetrics

The text-based exposition format that every instrumented target exposes (typically on /metrics) and that the Prometheus server scrapes over HTTP. The format evolved into OpenMetrics, a CNCF Sandbox specification that is the standardized successor; both are scrape-compatible with Prometheus. Defines counters, gauges, histograms, summaries, and (in OpenMetrics) info, stateset, gaugehistogram, and exemplars.

API entry from apis.yml

apis.yml Raw ↑
aid: prometheus-io:prometheus-exposition-format
name: Prometheus Exposition Format / OpenMetrics
tags:
- Exposition
- OpenMetrics
- Scraping
- Metrics Format
humanURL: https://prometheus.io/docs/instrumenting/exposition_formats/
description: The text-based exposition format that every instrumented target exposes (typically on /metrics)
  and that the Prometheus server scrapes over HTTP. The format evolved into OpenMetrics, a CNCF Sandbox
  specification that is the standardized successor; both are scrape-compatible with Prometheus. Defines
  counters, gauges, histograms, summaries, and (in OpenMetrics) info, stateset, gaugehistogram, and exemplars.
properties:
- url: https://prometheus.io/docs/instrumenting/exposition_formats/
  type: Documentation
- url: https://openmetrics.io/
  type: Documentation
  name: OpenMetrics
- url: https://github.com/prometheus/OpenMetrics
  type: SourceCode
  name: prometheus/OpenMetrics