prometheus / prometheus/common

expfmt: Support OpenMetrics 2.0

Open
#893 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

OpenMetrics 2.0 recently released an experimental release candidate: https://prometheus.io/docs/specs/om/open_metrics_spec_2_0/.

We should add support for it in the expfmt encoder so that it is supported in prometheus/client_golang.

@ywwg @bwplotka @krajorama

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 reading the linked OpenMetrics 2.0 specification and inspecting the expfmt encoder in prometheus/common. Trace how prometheus/client_golang uses that encoder and identify the existing format-support tests or entry points. Done means the encoder supports the specified OpenMetrics 2.0 behavior and remains usable by prometheus/client_golang.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.