You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently migrating a 1.5.X Spring Boot project to 2.0.0.RELEASE and did struggle a bit on the metrics to micrometer side.
It seems to me that #12262 is still relevant.
I have to manually override the HierarchicalNameMapper to a GraphiteHierarchicalNameMapper so as to use the tags as prefix feature (tested and working).
@Bean
public HierarchicalNameMapper hierarchicalNameMapper() {
return new GraphiteHierarchicalNameMapper("myTag");
}
The HierarchicalNameMapper.DEFAULT.toHierarchicalName() does not use this property at all and is in my case used by default.
It is as if there was some missing autoconfiguration somewhere that would not use the correct name mapper in a Graphite context.
As a result the management.metrics.export.graphite.tags-as-prefix property seems totally useless by default in my context, which is a Graphite context. I can see that it is correctly valued in the MeterRegistry's config and such, but as the DEFAULT Name Mapper is used, it's to no avail.