Skip to content

Update OM 2.0 with proposal#43 Created Timestamp syntax #2636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ArthurSens
Copy link
Member

Updates OpenMetrics 2.0 with our discussions in the working group and prometheus/proposals#43

cc @Maniktherana

@ArthurSens ArthurSens force-pushed the om-created-timestamps branch from ee584fd to f24c2ab Compare May 29, 2025 14:47
@krajorama krajorama changed the title Update OM 2.0 with proposal#43 Update OM 2.0 with proposal#43 Created Timestamp syntax May 30, 2025
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
@ArthurSens ArthurSens force-pushed the om-created-timestamps branch from 77a1036 to 8d8e083 Compare May 31, 2025 21:17
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
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.

Approved with some small corrections. Also as per WG decision, you'll need another approval.

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
@ArthurSens
Copy link
Member Author

Approved with some small corrections. Also as per WG decision, you'll need another approval.

Thanks for clarifying about exemplars :)

@ArthurSens ArthurSens requested a review from dashpole June 11, 2025 13:25
acme_http_router_request_seconds_sum{path="/api/v1",method="GET"} 9036.32 ct@1605281325.0
acme_http_router_request_seconds_count{path="/api/v1",method="GET"} 807283.0 ct@1605281325.0
acme_http_router_request_seconds_sum{path="/api/v2",method="POST"} 479.3 ct@1605281325.0
acme_http_router_request_seconds_count{path="/api/v2",method="POST"} 34.0 ct@1605281325.0
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Should we make the created timestamps different in the example? IIRC, the CR is the timestamp of the first observation for the series, so they will almost never match. We don't want to give the wrong impression that they will always be the same.

```

Exemplars MAY be attached to the MetricPoint's Total sample.

An example with a Metric with no labels, and a MetricPoint with a timestamp and a created and an exemplar:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be "Created Value" or "created timestamp"

```

An example of a Metric with no labels and a MetricPoint with two quantiles:
An example of a Metric with no labels and a MetricPoint with two quantiles and Created values:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
An example of a Metric with no labels and a MetricPoint with two quantiles and Created values:
An example of a Metric with no labels and a MetricPoint with two quantiles and Created Values:

nit: consistently capitalize or lowercase "Created Value"

foo_count 17
foo_sum 324789.3
foo_created 1520430000.123
foo_bucket{le="0.0"} 0 ct@1520430000.123
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment about created timestamps all being different. Count and sum should match the lowest CT

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