Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support OpenMetrics 2.0 exposition format

Aperta
#1,210 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
prometheus, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

Lingua principale
Python
Stelle
4.4k
Fork
876
Merge medio
8g 4h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di prometheus/client_python

Tutte le issue di prometheus/client_python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.