MetricFamilyToOpenMetrics has invalid metric type

Open
#341 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
observability

Research direction

Locate MetricFamilyToOpenMetrics in the Go code and inspect how untyped metrics are converted. Reproduce the invalid "unknown" output with an untyped metric, then add or adjust a focused test defining valid OpenMetrics output and use it to verify the fix.

Written by the indexing model from the issue text.

Description

In this function untyped metrics are out as "unknown". That makes it invalid for prometheus

Dominant language
Go
Stars
297
Forks
380
Avg merge
3d 18h
Merged PRs (30d)
12

Getting set up

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.

More from prometheus/common

All issues in prometheus/common

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.