spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

Custom metric's tag for MicrometerStatsLoadBalancerLifecycle

Open mario45211 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I'm integrating Spring Cloud LoadBalancer with a Consul Discovery Client and I want to include own Consul's instance tags in metrics from Load Balancer.

Describe the solution you'd like I'd like to register custom customizer bean, which could enrich micrometer's tags for load balancer metrics.

Describe alternatives you've considered I've Implemented own LoadBalancerLifecycle to gather metrics only to add few tags, but it seems tedious, especially having mechanism in a MicrometerStatsLoadBalancerLifecycle class.

mario45211 avatar Aug 23 '23 08:08 mario45211