Skip to content

Conversation

@barchetta
Copy link
Member

@barchetta barchetta commented Feb 10, 2025

Backport #9689 to Helidon 4.1.7

Description

Resolves #9686

Release note:


Helidon now correctly includes in the Prometheus/OpenMetrics output data for meters with colons in their names. They were previously excluded from Prometheus/OpenMetrics output although they were included in the JSON output and were correctly registered in the meter registry.


A colon is, in fact, a legal character in Prometheus meter names. The Helidon logic that queries the Micrometer Prometheus meter registry prepares a list of names to scrape to get the output. That logic was incorrectly replacing a ":" in meter names with an "_", treating it as an illegal character in meter names.

This PR corrects that replacement.

For example, a "?" is truly illegal and the Micrometer Prometheus meter register converts them to "" before storing the names in that registry. So the Helidon code that prepares the names for scraping continues to replace "?" with "". It just no longer replaces ":" as it used to.

The PR also contains a test to make sure that names with colons (valid name character) and

@barchetta barchetta added the backport Issues that are merged into a single branch, but missing in either master or previous release label Feb 10, 2025
@barchetta barchetta requested a review from tjquinno February 10, 2025 16:12
@barchetta barchetta self-assigned this Feb 10, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 10, 2025
@barchetta barchetta mentioned this pull request Feb 10, 2025
15 tasks
@barchetta barchetta added this to the 4.1.7 milestone Feb 10, 2025
@barchetta barchetta merged commit 12a1d97 into helidon-io:helidon-4.1.x Feb 10, 2025
44 checks passed
@barchetta barchetta deleted the 4.1.7-9689-backport branch February 10, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Issues that are merged into a single branch, but missing in either master or previous release OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants