Skip to content

Format counters in the OpenMetrics 2.0 writer - #1

Draft
rbizos wants to merge 1 commit into
feature/om2/basefrom
feature/om2/counters
Draft

rbizos wants to merge 1 commit into
feature/om2/basefrom
feature/om2/counters

Conversation

@rbizos

@rbizos rbizos commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Stacked on prometheus#1244. Part of prometheus#1210. This draft targets the base branch in this fork so the diff shows only the counter changes.

  • Keep _total in the family and sample names.
  • Fold _created into inline st@ timestamps, matched by label set.
  • Keep timestamped exemplars and omit exemplars without timestamps.

The 2.0 writer remains disabled; public exposition is unchanged.

Validation: 469 tests passed, 2 skipped; flake8, isort and mypy passed.

Part of prometheus#1210.

Signed-off-by: Raphael Bizos <r.bizos@criteo.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.

1 participant