Skip to content

fix(registry): preserve counter names during OpenMetrics exposition - #858

Open
ethanolchik wants to merge 1 commit into
prometheus:mainfrom
ethanolchik:fix/openmetrics-counter-names
Open

ethanolchik wants to merge 1 commit into
prometheus:mainfrom
ethanolchik:fix/openmetrics-counter-names

Conversation

@ethanolchik

Copy link
Copy Markdown

Summary

Avoid mutating a counter's registered name while rendering OpenMetrics output. The formatter now standardizes the exposed counter name without changing the metric object, so counters shared with another registry remain stable across scrapes.

Testing

  • Added a regression test covering a counter shared by OpenMetrics and Prometheus registries.
  • Full test suite passes locally.

Signed-off-by: Ethan Olchik <eitan.olchik@gmail.com>

This branch has not been deployed

No deployments
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