prometheus / prometheus/pushgateway

Support for the OpenMetrics format

Open
#400 3 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Go
Stars
3.4k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

Feature request

Currently the Pushgateway can only accept and emit metrics using Prometheus's original text format. There is no support for the new OpenMetrics format, even though Prometheus itself (and a growing number of clients) are moving to this format.

I don't have a strong argument for this feature, other than the merits of the OpenMetrics format itself -- in particular I'd love to have support for exemplars.

In addition, since Pushgateway uses Prometheus's own Golang libraries, this is probably not too hard to achieve -- it has been supported with an opt-in flag since 1.4.0, released more than a year ago.

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

The issue names no files or tests. Start by locating the Go entry points that accept and emit Prometheus text metrics, then review the Prometheus library's opt-in OpenMetrics support; done means OpenMetrics is accepted and emitted, with exemplar support covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, prometheus
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.