Standalone OpenMetrics Text Parser
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- observability-sre
Direzione di ricerca
Inizia esaminando la proposta e le librerie Prometheus esistenti per discovery e scraping a cui fa riferimento. Definisci l’ambito del parser autonomo, includendo il parsing del formato testuale e la conversione in Protocol Buffers, quindi confronta questo design con le alternative indicate. Il lavoro sarà considerato completato quando il progetto avrà un piano di implementazione e criteri di accettazione concordati per la libreria del parser.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
OpenMetrics, when adopted widely, will be the export format of various endpoints that need to be auto-discovered and scraped. Currently, there isn't an official parser library for OpenMetrics other than the ongoing work on Prometheus. Prometheus provides discovery and scraping libraries to enable non-Prometheus programs to discover and scrape Prometheus endpoints. But the these libraries report data points as deltas and makes the consumer to build a state machine and aggregate the deltas in order to report the collected series. This sometimes makes it hard to write new tools to discover, parse and ingest metrics. To avoid some of these problems, I propose that we should build a standalone OpenMetrics parser so the adoption is not limited.
Challenges
A standalone parser would be useful in the following cases:
- When metrics are needed to be scraped by intermediate tools. There are a variety of tools that want to rely on user metrics for better decisions. For example, load balancers can rely on custom user metrics. Autoscalers can dynamically scale the number of replicas based on user metrics.
- In large clusters, aggregation of collected metrics is a common approach before reporting them. Collecting OpenMetrics metrics, aggregating them in a custom intermediate component and exposing them to metric collection backend is a path we should enable.
- When running very tiny workloads or while being in limited compute environments, running collection backends is not always an option. It'd be good to be able to parse the metrics to lightweight intermediate components to temporary store, aggregate and export to metrics collection backend is not possible.
Proposal
Let’s create a standalone parser library that will parse the text format to Protocol Buffers. Consumers of OpenMetrics can rely on the parser library if proto exposition is not available. If metrics are exposed in protos, scraper should prefer to fetch them in proto instead of parsing the text format.
Alternatives Considered
- Building a standalone parser library based on components from the Prometheus source code. But maintainability-wise, this is not the right approach and it may require forks of unexported components. Forking the Prometheus project should be discouraged.
- Making protobuf a mandatory export format but this would limit the adoption of OpenMetrics.
- Lingua principale
- Go
- Stelle
- 2.5k
- Fork
- 175
- Merge medio
- 1g 22h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di prometheus/OpenMetrics
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
prometheus/OpenMetrics#323 ·
-
OM 2.0
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
prometheus/OpenMetrics#312 · 13 commenti ·
-
OM 2.0
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
prometheus/OpenMetrics#310 · 4 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
prometheus/OpenMetrics#304 · 1 commento ·
-
RFC next stepsAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
prometheus/OpenMetrics#301 ·
Tutte le issue di prometheus/OpenMetrics
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
txn2/mcp-data-platform#2728 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
blinklabs-io/dingo#6504 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
SocialGouv/iterion#3413 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
orion-belt-dev/orion-belt#181 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
kubesmarts/logic-operator#105 ·
I maintainer di solito rispondono entro 1 giorno