Skip to content

Support per-meter configuration for OtlpMetricsProperties #45203

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

Closed

Conversation

shakuzen
Copy link
Member

Adds configuration properties support for the new OtlpConfig methods histogramFlavorPerMeter and maxBucketsPerMeter. The existing histogramFlavor and maxBucketCount configuration properties are used as defaults when there isn't a specific per-meter configuration set.

See micrometer-metrics/micrometer#5974

Adds configuration properties support for the new OtlpConfig methods `histogramFlavorPerMeter` and `maxBucketsPerMeter`. The existing `histogramFlavor` and `maxBucketCount` configuration properties are used as defaults when there isn't a specific per-meter configuration set.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 15, 2025
@@ -1548,7 +1548,7 @@ bom {
releaseNotes("https://github.com/apache/maven-war-plugin/releases/tag/maven-war-plugin-{version}")
}
}
library("Micrometer", "1.15.0-SNAPSHOT") {
library("Micrometer", "1.15.0-RC1") {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this change isn't necessary since Boot is already on snapshots. When I started making the changes for the PR, this was still on M3.

@philwebb philwebb removed the status: waiting-for-triage An issue we've not yet triaged label Apr 15, 2025
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 15, 2025
@philwebb philwebb self-assigned this Apr 15, 2025
@philwebb philwebb changed the title Per-meter configuration for OtlpMetricsProperties Support Per-meter configuration for OtlpMetricsProperties Apr 15, 2025
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 15, 2025
@philwebb philwebb added this to the 3.5.0-RC1 milestone Apr 15, 2025
philwebb pushed a commit that referenced this pull request Apr 15, 2025
Add configuration properties support for the new `OtlpConfig` methods
`histogramFlavorPerMeter` and `maxBucketsPerMeter`. The existing
`histogramFlavor` and `maxBucketCount` configuration properties are
used as defaults when there isn't a specific per-meter configuration
set.

See gh-45203
@philwebb philwebb closed this in 88c9ae9 Apr 15, 2025
@philwebb
Copy link
Member

Thanks @shakuzen! I've slightly reworked the properties:

Old:

  • management.otlp.metrics.export.histogram-flavor-per-meter.<name>=value
  • management.otlp.metrics.export.max-buckets-per-meter.<name>=value

New:

  • management.otlp.metrics.export.meter.<name>.histogram-flavor=value
  • management.otlp.metrics.export.meter.<name>.max-buckets=value.

@wilkinsona wilkinsona changed the title Support Per-meter configuration for OtlpMetricsProperties Support per-meter configuration for OtlpMetricsProperties Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants