Skip to content

Support OpenMetrics 2.0 exposition format #1210

Description

@rbizos

OpenMetrics 2.0 is now available (experimental): https://prometheus.io/docs/specs/om/open_metrics_spec_2_0/

Prometheus common have it implemented prometheus/common#893
A PR is on the way for client_golang prometheus/client_golang#2132

It would be nice for client_python to support exposing OpenMetrics 2.0 as well.

Proposed approach, mirroring what client_golang:

  • Keep a single existing opt-in switch for OpenMetrics exposition rather than adding a second flag specifically for 2.0.
  • Once OpenMetrics exposition is opted into, rely purely on content neciation.

Related work:

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions