Skip to content

Add an experimental OpenMetrics 2.0 exposition (gauge, info, unknown) - #1244

Open
rbizos wants to merge 2 commits into
prometheus:masterfrom
rbizos:feature/om2/base
Open

rbizos wants to merge 2 commits into
prometheus:masterfrom
rbizos:feature/om2/base

Conversation

@rbizos

@rbizos rbizos commented Oct 28, 2026 •

Copy link
Copy Markdown

Part of #1210.

Preparing for the OpenMetrics 2.0 exposition by making room for a separate exposition function.
Until every metric type is supported, version 2.0.0 is still served by the 1.0 writer, so nothing
changes for users.

The 2.0 exposition supports only gauge, info and unknown metric types.

Follow-ups

  • Implement the remaining metric types, then remove the flag so that 2.0.0 is
    chosen by content negotiation alone. The current native histogram implementation will be moved to OM2.0 exposition branch.
  • Maybe move the OM2.0 code into its own module

@csmarchbanks

…flag

Signed-off-by: Raphael Bizos <r.bizos@criteo.com>
Signed-off-by: Raphael Bizos <r.bizos@criteo.com>
@dashpole
dashpole self-requested a review October 28, 2026 16:04
@rbizos

rbizos commented Oct 29, 2026

Copy link
Copy Markdown
Author

For the CI I created those 2 unrelated PRs:

#1245
#1246

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant