Skip to content
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

Add a test verifying that a single character meter name is allowed for Prometheus #5791

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Jan 2, 2025

This PR adds a test verifying that a single character meter name is allowed for Prometheus.

There seems to have been a regression that prometheus/client_java#951 has fixed in 1.3.0 or later, and Micrometer 1.13.x uses Prometheus Java client 1.2.1 that doesn't contain the fix, so the test that this PR adds fails.

I'm not sure if it's worth upgrading to Prometheus Java client 1.3.0 or later to fix it as it's a minor upgrade that might cause other compatibility issues.

The migration guide for Micrometer 1.13 contains an entry for it, and it sounds like a feature, so at least we might want to update the guide to rephrase it.

@shakuzen
Copy link
Member

shakuzen commented Jan 6, 2025

I'm not sure if it's worth upgrading to Prometheus Java client 1.3.0 or later to fix it as it's a minor upgrade that might cause other compatibility issues.

I think it'll be best for us to leave it up to users to override the version of the Prometheus client to the one they want if they are affected by this particular issue and can't upgrade from Micrometer 1.13.x.

@jonatan-ivanov jonatan-ivanov added this to the 1.14.3 milestone Jan 10, 2025
@jonatan-ivanov jonatan-ivanov added type: task A general task registry: prometheus A Prometheus Registry related issue labels Jan 10, 2025
@jonatan-ivanov jonatan-ivanov merged commit 521d57d into micrometer-metrics:1.14.x Jan 10, 2025
7 checks passed
@jonatan-ivanov
Copy link
Member

Thank you, I fixed the migration guide: https://github.com/micrometer-metrics/micrometer/wiki/1.13-Migration-Guide/_compare/362088c45addf409808a5a293aec344f0add1f1b...b94c71bc9bb7f1ff6b6440b03c331b0aab29899b

@izeye izeye deleted the single-char branch January 10, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
registry: prometheus A Prometheus Registry related issue type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants