Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Support OpenMetrics 2.0 exposition format

Offen
#1,210 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
prometheus, python

Rechercherichtung

Review the linked PRs (#1104, #1087) and issue #1122 to understand the current OpenMetrics support. Examine the client_golang PR #2132 for the implementation approach. The work involves modifying the exposition logic, likely in the core metrics generation and HTTP handler code, to negotiate and produce OpenMetrics 2.0 format. Testing will require verifying the output against the OpenMetrics 2.0 specification.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Prometheus common have it implemented https://github.com/prometheus/common/issues/893
A PR is on the way for client_golang https://github.com/prometheus/client_golang/pull/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:

Vorherrschende Sprache
Python
Sterne
4.4k
Forks
876
Ø Merge
8 T. 4 Std.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus prometheus/client_python

Alle Issues in prometheus/client_python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.