Prometheus Exporter should have an option to export using OpenMetrics format #3468
Labels
area:metrics
Part of OpenTelemetry Metrics
enhancement
New feature or request
pkg:exporter:prometheus
Related to the Prometheus exporter package
Problem Statement
Prometheus exporter only expose metrics using the Prometheus format, which is a subset of the OpenMetrics format. Ideally, we should be able to specify an option to export metrics using the OpenMetrics format.
Given that we don't expose an OpenMetrics format, we lose information about metric's units, which make some required processing of Prometheus metric to OTLP as the specs define to be skipped, e..g, unit suffixes added by the otel-go are not able to be removed due to the lack of unit information as a limitation of the prometheus format.
Proposed Solution
A
prometheus.WithOpenMetrics()
option to enable the OpenMetrics format, which should contains unit metadata and implement the OTLP Metric points to Prometheus.Alternatives
Another alternative would always enable this behavior, but having an option to enable/disabled can be useful.
The text was updated successfully, but these errors were encountered: