Skip to content

fix: preserve OM2 info metric names#2214

Closed
zeitlinger wants to merge 1 commit into
prometheus:mainfrom
zeitlinger:codex/om2-info-no-suffix
Closed

fix: preserve OM2 info metric names#2214
zeitlinger wants to merge 1 commit into
prometheus:mainfrom
zeitlinger:codex/om2-info-no-suffix

Conversation

@zeitlinger

Copy link
Copy Markdown
Member

Summary

  • preserve OpenMetrics 2 info metric names instead of appending _info
  • keep the existing name unchanged when it already includes _info
  • update OM2 writer tests to cover both cases

Testing

  • ./mvnw test -pl prometheus-metrics-exposition-textformats -Dtest=OpenMetrics2TextFormatWriterTest -Dcoverage.skip=true -Dcheckstyle.skip=true
  • mise run build
  • mise run lint:fix

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger

Copy link
Copy Markdown
Member Author

contradicts spec

@zeitlinger zeitlinger closed this Jun 11, 2026
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