prometheus / prometheus/common

decode: Implement full OpenMetrics parsing support

Open
#812 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
296
Forks
366
Avg merge
2d 10h
Merged PRs (30d)
18

Description

The common parser does not correctly decode open metrics text format. Prometheus' parser is highly optimized and specialized for its scraping use-case, and there is a need for a better externally-usable parsing/formatting library.

TODO:

  • Support "unknown" keyword instead of prom's "untyped"
  • Native histograms
  • Support all quoting characters
  • .... other things?

See also:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the common parser and reviewing its current OpenMetrics text-format decoding and formatting behavior. Use the linked Prometheus issues as context, then define the required scope for unknown types, native histograms, quoting characters, and other missing cases; done means the parser supports the agreed complete set.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.