docs icon indicating copy to clipboard operation
docs copied to clipboard

feat(om2): relax the rules around unit and total suffixes

Open krajorama opened this issue 7 months ago • 1 comments

Fixes: https://github.com/prometheus/OpenMetrics/issues/286 Fixes: https://github.com/prometheus/OpenMetrics/issues/282

krajorama avatar Jun 13 '25 11:06 krajorama

I agree with this comment from @beorn7 that the metric family name should be the same in the metadata and what we write in the metric(point)s.

# TYPE foo_total counter
# HELP foo_total A help string.
foo_total 42

or

# TYPE foo counter
# HELP foo A help string.
foo 42

but to be able to make a generic statement, we need these to be fixed: https://github.com/prometheus/OpenMetrics/issues/285 Created timestamp not exposed as "foo_create" anymore. https://github.com/prometheus/OpenMetrics/issues/283 Complex types for classic histograms and summaries.

krajorama avatar Jun 16 '25 07:06 krajorama

This PR is mixing up relaxed suffix rules and federation. I'll open a PR based on #2750 instead.

krajorama avatar Oct 08 '25 08:10 krajorama