OpenTelemetry Metrics Exporter - Prometheus

Status: Experimental

A Prometheus Exporter is a Pull Metric Exporter which reports metrics by responding to the Prometheus scraper requests.

A Prometheus Exporter MUST support Pull mode.

A Prometheus Exporter MUST NOT support Push mode.

A Prometheus Exporter MUST only support Cumulative Temporality.

A Prometheus Exporter MUST support version 0.0.4 of the Text-based format.

A Prometheus Exporter MAY support OpenMetrics Text Format, including the Exemplars.

A Prometheus Exporter MAY offer configuration to add resource attributes as metric attributes. By default, it MUST NOT add any resource attributes as metric attributes. The configuration SHOULD allow the user to select which resource attributes to copy (e.g. include / exclude or regular expression based). Copied Resource attributes MUST NOT be excluded from target_info.

A Prometheus Exporter MAY support a configuration option to produce metrics without a unit suffix or UNIT metadata. The option MAY be named without_units, and MUST be false by default.

A Prometheus Exporter MAY support a configuration option to produce metrics without a type suffix. The option MAY be named without_type_suffix, and MUST be false by default.

A Prometheus Exporter MAY support a configuration option to produce metrics without a scope info metric. The option MAY be named without_scope_info, and MUST be false by default.