Skip to content

management.metrics.export.tags-as-prefix property seems not to be honored in Spring Boot 2.0.0.RELEASE #12557

@jceloi

Description

@jceloi

Greetings,

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions