Skip to content

fix(om2): consistency between model and exposition#2890

Merged
bwplotka merged 4 commits intomainfrom
krajo/om2-should-meta
Mar 13, 2026
Merged

fix(om2): consistency between model and exposition#2890
bwplotka merged 4 commits intomainfrom
krajo/om2-should-meta

Conversation

@krajorama
Copy link
Member

The model said that: A MetricFamily MUST have a name, HELP, TYPE, and UNIT
metadata. However the exposition does not require it to be exposed,
therefore for the sake of consistency we make this SHOULD. Also having all caps conflated the model with the exposition.

Also this allows very simple exposers to not think about this.

krajorama and others added 2 commits March 12, 2026 09:27
The model said that: A MetricFamily MUST have a name, HELP, TYPE, and UNIT
 metadata. However the exposition does not require it to be exposed,
therefore for the sake of consistency we make this SHOULD.
Also having all caps conflated the model with the exposition.

Also this allows very simple exposers to not think about this.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@bwplotka bwplotka mentioned this pull request Mar 13, 2026
Closed
@bwplotka
Copy link
Member

Sounds like it's not ready, let's discuss this when we do read-up.

krajorama and others added 2 commits March 13, 2026 13:29
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@bwplotka bwplotka merged commit 57c335e into main Mar 13, 2026
5 of 6 checks passed
@bwplotka bwplotka deleted the krajo/om2-should-meta branch March 13, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants