Package ubic.gemma.cli.metrics
Class MeterRegistryCliConfigurer
java.lang.Object
ubic.gemma.core.metrics.AbstractMeterRegistryConfigurer
ubic.gemma.cli.metrics.MeterRegistryCliConfigurer
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,CLIAuthenticationAware
@Component
@Lazy(false)
@Profile("metrics")
public class MeterRegistryCliConfigurer
extends AbstractMeterRegistryConfigurer
implements CLIAuthenticationAware
This configurer adds two tags:
environment='cli'
and user
to the given meter registry.- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionMeterRegistryCliConfigurer
(io.micrometer.core.instrument.MeterRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
configure
(io.micrometer.core.instrument.MeterRegistry registry) void
setAuthentication
(org.springframework.security.core.Authentication authentication) Methods inherited from class ubic.gemma.core.metrics.AbstractMeterRegistryConfigurer
afterPropertiesSet
-
Constructor Details
-
MeterRegistryCliConfigurer
@Autowired public MeterRegistryCliConfigurer(io.micrometer.core.instrument.MeterRegistry registry)
-
-
Method Details
-
configure
protected void configure(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
configure
in classAbstractMeterRegistryConfigurer
-
setAuthentication
public void setAuthentication(org.springframework.security.core.Authentication authentication) - Specified by:
setAuthentication
in interfaceCLIAuthenticationAware
-
clearAuthentication
public void clearAuthentication()- Specified by:
clearAuthentication
in interfaceCLIAuthenticationAware
-