Skip to content

om2: MetricFamilyName is MetricName#2791

Merged
bwplotka merged 4 commits into
mainfrom
bwplotka/om2-restr
Feb 24, 2026
Merged

om2: MetricFamilyName is MetricName#2791
bwplotka merged 4 commits into
mainfrom
bwplotka/om2-restr

Conversation

@bwplotka

@bwplotka bwplotka commented Dec 3, 2025

Copy link
Copy Markdown
Member

Fixes prometheus/OpenMetrics#305

We can either merge this with TODOs before complex values/types or wait for complex type/values.

@bwplotka

bwplotka commented Dec 3, 2025

Copy link
Copy Markdown
Member Author

I am bit surprised but I couldn't find any special rule for those suffixes in the ABNF to change... also tests passes despite me adding suffixes to MF names. Something smells like ABNF is too relaxed.

@ArthurSens ArthurSens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could review only half of the PR 😬, I have some small comments

Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
@jan--f jan--f added the kind/feature New documentation content label Dec 5, 2025
@ywwg

ywwg commented Feb 9, 2026

Copy link
Copy Markdown
Member

do we still intend to merge this?

@bwplotka bwplotka force-pushed the bwplotka/om2-restr branch 6 times, most recently from 11a31fa to ff36b8d Compare February 10, 2026 06:41
@bwplotka

Copy link
Copy Markdown
Member Author

I think so. Much simpler now with Composite Types merged in.

@bwplotka

Copy link
Copy Markdown
Member Author

PTAL @krajorama @dashpole @ywwg

Comment thread docs/specs/om/open_metrics_spec_2_0.md
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Fixes prometheus/OpenMetrics#305

Signed-off-by: bwplotka <bwplotka@gmail.com>
dashpole
dashpole previously approved these changes Feb 10, 2026
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Signed-off-by: bwplotka <bwplotka@gmail.com>
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Signed-off-by: bwplotka <bwplotka@gmail.com>
Comment thread docs/specs/om/open_metrics_spec_2_0.md Outdated
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

@krajorama krajorama left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bwplotka bwplotka merged commit be82632 into main Feb 24, 2026
6 checks passed
@bwplotka bwplotka deleted the bwplotka/om2-restr branch February 24, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New documentation content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OM 2.0: Restrict metric family to NOT strip suffix

6 participants