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 could not find a way to add custom static labels to the metrics that are emitted out-of-the-box. I want to differentiate the metrics if I have multiple beans of ConnectionProvider and want to analyse them seperately.
Motivation
I am working on a project where multiple tenants are able to access my service and I do some data aggregator for them by making HTTP calls to some other services. Now if the traffic from one tenant spikes, I do not want the other tenants to be affected so I decided to make multiple beans as the number of tenants for me is always going to be less than 5 (worst case scenario). I want to see the metrics for these tenants separately, but I could not find a way to add a custom label to the out-of-the-box provided metrics by the library.
Desired solution
Maybe there could be a way to add a custom label, with static values if not dynamic, that I can add at the time of bean creation, to the already emitted metrics.
Additional context
Here is the code for the bean that I was creating to use the ConnectionProvider that I later used to create a bean of Webclient for my reactive application.
@Bean
funconnectionProvider(): ConnectionProvider {
returnConnectionProvider// Other properties
.metrics(true)
// Other properties
.build()
}
The text was updated successfully, but these errors were encountered:
I could not find a way to add custom static labels to the metrics that are emitted out-of-the-box. I want to differentiate the metrics if I have multiple beans of ConnectionProvider and want to analyse them seperately.
Motivation
I am working on a project where multiple tenants are able to access my service and I do some data aggregator for them by making HTTP calls to some other services. Now if the traffic from one tenant spikes, I do not want the other tenants to be affected so I decided to make multiple beans as the number of tenants for me is always going to be less than 5 (worst case scenario). I want to see the metrics for these tenants separately, but I could not find a way to add a custom label to the out-of-the-box provided metrics by the library.
Desired solution
Maybe there could be a way to add a custom label, with static values if not dynamic, that I can add at the time of bean creation, to the already emitted metrics.
Additional context
Here is the code for the bean that I was creating to use the ConnectionProvider that I later used to create a bean of Webclient for my reactive application.
The text was updated successfully, but these errors were encountered: