Skip to content

Conversation

@jkschneider
Copy link
Contributor

OOTB Micrometer binders all now use a consistent prefix so they are easy to configure with MeterFilters. Previously, in some binders, we allowed the user to provide a name that was used as the metric prefix. In those cases (such as DataSourcePoolMetrics), we've moved the name to a tag. This improves the dimensional exploration of data source metrics while improving the application of MeterFilters as well.

Once these binders have a consistent prefix (e.g. jdbc for DataSourcePoolMetrics, rabbitmq for RabbitMetrics), and since we now have #11800, we no longer need *.instrument property flags on these OOTB binders. It is sufficient to use management.metrics.enable.jdbc=false to JDBC metrics, for example.

If the user does insist on changing the metric name prefix, it is possible to do with a programmatic MeterFilter using MeterFilter#map.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 12, 2018
@snicoll snicoll self-assigned this Feb 13, 2018
@snicoll snicoll added type: enhancement A general enhancement priority: normal and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 13, 2018
@snicoll snicoll added this to the 2.0.0.RC2 milestone Feb 13, 2018
@snicoll snicoll closed this in b28cabd Feb 13, 2018
snicoll added a commit that referenced this pull request Feb 13, 2018
* pr/12017:
  Polish "Remove unnecessary config options for metrics"
  Remove unnecessary config options for JDBC, Rabbit, and Cache metrics
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