Skip to content

histograms: Implement final OM text format #11265

Description

@beorn7

Once OM has decided how the text format representation of Native Histograms should look like (likely in OM 2.0, cf. prometheus/OpenMetrics#237 for tracking), we need to implement it here in prometheus/prometheus.

This is needed to declare Native Histograms a stable feature.

See also #11172, which will inform how to design the text format.

Activity

added this to the Native Histograms milestone on Sep 6, 2022

beorn7 commented on Feb 21, 2023

@beorn7
ContributorAuthor

For reference: https://docs.google.com/document/d/1w6GhLmDYKkkNLsyPWkC3TGhW3Rs1G73j7E_nG7bhlw0/edit# enumerates ideas how an OM text format could look like

weyert commented on Apr 4, 2023

@weyert

Are there any decisions made on the OM text format?

I would interested in implementing the text format for the OpenTelemetry Prometheus exporter in otel-js.

beorn7 commented on Apr 4, 2023

@beorn7
ContributorAuthor

No decisions made yet. The next step would be to create a prototype in any of the instrumentation libraries based on the brainstorming doc linked above. https://github.com/prometheus/client_python comes to mind, and @csmarchbanks seemed interesting in exploring the topic. Not sure how soon he'll have time (or if he is ready to receive PRs from others).

moved this from Todo to In Progress in Prometheus 3.0on Jan 9, 2024
added a commit that references this issue on May 27, 2024

alexgreenbank commented on Oct 8, 2024

@alexgreenbank
Member

Hello from the bug scrub.

Design doc: prometheus/proposals#32

Being worked on by @csmarchbanks @vesari

krajorama commented on May 8, 2025

@krajorama
Member

Work started to add to OM2.0: prometheus/docs#2634

beorn7 commented on Sep 18, 2025

@beorn7
ContributorAuthor

We decided that this is not required to declare Native Histograms a stable feature.

Protobuf scraping has been improved to not blow up resource usage anymore (with Prometheus v3.3). Adding OM support later will not be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions