feat(om2): relax the rules around unit and total suffixes
Fixes: https://github.com/prometheus/OpenMetrics/issues/286 Fixes: https://github.com/prometheus/OpenMetrics/issues/282
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.
This PR is mixing up relaxed suffix rules and federation. I'll open a PR based on #2750 instead.