diff --git a/docs/instrumenting/exposition_formats.md b/docs/instrumenting/exposition_formats.md index 646dfec8d..14f77be2a 100644 --- a/docs/instrumenting/exposition_formats.md +++ b/docs/instrumenting/exposition_formats.md @@ -3,33 +3,36 @@ title: Exposition formats sort_rank: 6 --- -Metrics can be exposed to Prometheus using a simple [text-based](#text-based-format) -exposition format. There are various [client libraries](/docs/instrumenting/clientlibs/) -that implement this format for you. If your preferred language doesn't have a client -library you can [create your own](/docs/instrumenting/writing_clientlibs/). +As of Prometheus version 2.0, all processes that expose metrics to Prometheus must use +a **text** format, by default. An alternative, **protobuf** format may be used behind [the HTTP negotiation](./content_negotiation.md). -## Text-based format +There are various [client libraries](./clientlibs.md) that implement those formats for you. If your preferred language doesn't have a client +library you can [create your own](./writing_clientlibs.md). -As of Prometheus version 2.0, all processes that expose metrics to Prometheus need to use -a text-based format. In this section you can find some [basic information](#basic-info) +This document outlines officially supported exposition formats. + +## Prometheus Text Format + +In this section you can find some [basic information](#basic-info) about this format as well as a more [detailed breakdown](#text-format-details) of the format. ### Basic info -| Aspect | Description | -|--------|-------------| -| **Inception** | April 2014 | -| **Supported in** | Prometheus version `>=0.4.0` | -| **Transmission** | HTTP | -| **Encoding** | UTF-8, `\n` line endings | -| **HTTP `Content-Type`** | `text/plain; version=0.0.4` (A missing `version` value will lead to a fall-back to the most recent text format version.) | -| **Optional HTTP `Content-Encoding`** | `gzip` | -| **Advantages** | | -| **Limitations** | | -| **Supported metric primitives** | | - -### Text format details +| Aspect | Description | +|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **Inception** | April 2014 | +| **Supported in** | Prometheus version `>=0.4.0` | +| **Transmission** | HTTP | +| **Encoding** | UTF-8, `\n` line endings | +| **HTTP `Content-Type`** | `text/plain` with parameters: