Skip to content

OM 2.0: Remove MetricPoint concept, and use Sample#2894

Merged
dashpole merged 8 commits intoprometheus:mainfrom
dashpole:metricpoint_to_sample
Mar 17, 2026
Merged

OM 2.0: Remove MetricPoint concept, and use Sample#2894
dashpole merged 8 commits intoprometheus:mainfrom
dashpole:metricpoint_to_sample

Conversation

@dashpole
Copy link
Contributor

Fixes prometheus/OpenMetrics#315

This aligns with the structure in slide 2 of prometheus/OpenMetrics#315 (comment)

@dashpole dashpole force-pushed the metricpoint_to_sample branch 2 times, most recently from 65176e7 to 4c240ac Compare March 13, 2026 13:59
bwplotka
bwplotka previously approved these changes Mar 13, 2026
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Reviewed in OM2 WG

@dashpole
Copy link
Contributor Author

@ywwg @bwplotka @krajorama

I addressed all the open comments!


The MetricFamily name for Info metrics MUST end in `_info`.

A MetricPoint of an Info Metric contains a LabelSet. An Info MetricPoint's LabelSet MUST NOT have a label name which is the same as the name of a label of the LabelSet of its Metric.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should add in "Metric" that labels not specific to a MetricFamily that do not change over the lifetime of the process SHOULD go into an info metric ? To pair with the first sentence in this "Info" section?

bwplotka
bwplotka previously approved these changes Mar 17, 2026
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

LGTM modulo @krajorama comments

dashpole and others added 7 commits March 17, 2026 13:11
Signed-off-by: David Ashpole <dashpole@google.com>
Signed-off-by: David Ashpole <dashpole@google.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: David Ashpole <dashpole@google.com>
Signed-off-by: David Ashpole <dashpole@google.com>
Signed-off-by: David Ashpole <dashpole@google.com>
Signed-off-by: David Ashpole <dashpole@google.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: David Ashpole <dashpole@google.com>
@dashpole dashpole force-pushed the metricpoint_to_sample branch from 857991e to 00b6c6d Compare March 17, 2026 13:16
bwplotka
bwplotka previously approved these changes Mar 17, 2026
@dashpole
Copy link
Contributor Author

@bwplotka I added a link to #stateset-1, but it seems like the markdown validation doesn't recognize it.

This link seems to work: https://prometheus.io/docs/specs/om/open_metrics_spec_2_0/#stateset-1

@dashpole
Copy link
Contributor Author

I'm going to remove the link, and add it in a follow-up so we can merge this.

Signed-off-by: David Ashpole <dashpole@google.com>
@dashpole
Copy link
Contributor Author

Removed the link

@dashpole
Copy link
Contributor Author

Needs new approval

Copy link
Member

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

LGTM

@dashpole dashpole merged commit 8d521e4 into prometheus:main Mar 17, 2026
7 checks passed
@dashpole dashpole deleted the metricpoint_to_sample branch March 17, 2026 14:07
krajorama added a commit that referenced this pull request Mar 18, 2026
Follow up to #2894

Let the metric be name and labels AND sample.

Also fix a typo picked up by Claude.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
krajorama added a commit that referenced this pull request Mar 18, 2026
Follow up to #2894

Let the metric be name and labels AND sample.

Also fix a typo picked up by Claude.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
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.

OM 2.0: Clarify the relationship between Metric and MetricPoint

3 participants