Prometheus exposition format

The plain-text format a metrics page uses: one sample per line with name, optional labels in braces and a value, plus comment lines for help text and type.

In more detail

Because it is plain text, anything that can print lines can be instrumented, and any problem can be debugged by fetching the page by hand. Label values are quoted and must escape quotes, backslashes and newlines. Values are floating-point numbers, and NaN and positive or negative infinity are allowed. Each series may appear only once per page, or the scrape can be rejected.

Example

http_requests_total{method="GET",route="/healthz",status="200"} 3

Related terms

Taught in

References