Skip to content

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
}
}
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